The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter contains the following sections:
You will be forced to change the default password on first time login. Portal will not let you bypass this step and will keep returning you to this page until you change the default password. After the first time password change, you can change your password using the procedures described in this section. Also, if the user has multiple browsers or tabs or the SAME user is logged on by 2 or more computers and one of the user changes the password then everyone will be logged off and asked to re-enter the new password. The user session has an expiry of 1 hour so if the user is inactive on the portal for an hour then portal will expire the session and the user will have to re-login. If you forgot your password, you can also reset the password.
This section discusses how to change the passwords.
After you install ESC, to change the Confd admin password, do the following:
Step 1 | Log in to ESC VM. |
Step 2 | Switch to the root user. |
Step 3 | To reset to the default password (admin/cisco123), use one of the following method: |
ESC REST API uses http basic access authentication where the ESC client will have to provide a username and password when making ESC REST requests. The user name and password will be encoded with Base64 in transit, but not encrypted or hashed. HTTPS will be used in conjunction with Basic Authentication to provide the encryption.
This section discusses how to enable the REST authentication, change the default password of the REST interface, and how to send authorized REST request from the ESC client.
By default, the REST authentication is disabled. To enable it the pass the argument --enable-auth to ESC bootvm.py, ESC installation script.
![]() Note | escadm escmanager set --url http://127.0.0.1:8080/ESCManager,https://0.0.0.0:8443/ESCManager |
The REST interface has only one default username/password (admin/cisco123). The password can be updated after the bootup using escadm tool from the ESC VM CLI. You can also update the password through the REST API.
To send an authorized request, the ESC client should send the request with the following header:
Authorization: Basic YWRtaW46Y2lzY28xMjM=
where YWRtaW46Y2lzY28xMjM= is the Base64 enconded string of the default username/password.
Most libraries and web clients have an interface for providing the username/password and the application will encode the username/password and add the HTTP Basic Auth header.
Example using the default credentials:
For HTTP:
http://[ESCVM_IP]:8080/ESCManager/v0/tenants/
For HTTPS:
https://[ESCVM_IP]:8443/ESCManager/v0/tenants/
![]() Note |
Passing VIM credential using Netconf :
<esc_system_config xmlns="http://www.cisco.com/esc/esc"> <vim_connectors> <!--represents a vim--> <vim_connector> <!--unique id for each vim--> <id>my-ucs-30</id> <!--vim type [OPENSTACK|VMWARE_VSPHERE|LIBVIRT|AWS|CSP]--> <type>OPENSTACK</type> <properties> <property> <name>os_auth_url</name> <value>http://<os_ip:port>/v3</value> </property> <!-- The project name for openstack authentication and authorization --> <property> <name>os_project_name</name> <value>vimProject</value> </property> <!-- The project domain name is needed for openstack v3 identity api --> <property> <name>os_project_domain_name</name> <value>default</value> </property> </properties> <users> <user> <id>admin</id> <credentials> <properties> <property> <name>os_password</name> <value>cisco123</value> </property> <!-- The user domain name is needed for openstack v3 identity api --> <property> <name>os_user_domain_name</name> <value>default</value> </property> </properties> </credentials> </user> </users> </vim_connector> </vim_connectors> </esc_system_config>
Updating VIM Connector using Netconf:
<esc_system_config xmlns="http://www.cisco.com/esc/esc"> <vim_connectors> <vim_connector nc:operation="replace"> <id>example_vim</id> <type>OPENSTACK</type> <properties> <property> <name>os_auth_url</name> <value>{auth_url}</value> </property> <property> <name>os_project_name</name> <value>vimProject</value> </property> <!-- The project domain name is only needed for openstack v3 identity api --> <property> <name>os_project_domain_name</name> <value>default</value> </property> <property> <name>os_identity_api_version</name> <value>3</value> </property> </properties> </vim_connector> </vim_connectors> </esc_system_config>
Updating VIM user using Netconf:
<esc_system_config xmlns="http://www.cisco.com/esc/esc"> <vim_connectors> <vim_connector> <id>example_vim</id> <users> <user nc:operation="replace"> <id>my_user</id> <credentials> <properties> <property> <name>os_password</name> <value>cisco123</value> </property> <!-- The user domain name is only needed for openstack v3 identity api --> <property> <name>os_user_domain_name</name> <value>default</value> </property> </properties> </credentials> </user> </users> </vim_connector> </vim_connectors> </esc_system_config>
Deleting VIM connector using Netconf:
<esc_system_config xmlns="http://www.cisco.com/esc/esc"> <vim_connectors> <vim_connector nc:operation="delete"> <id>example_vim</id> </vim_connector> </vim_connectors> </esc_system_config>
$/opt/cisco/esc/esc-confd/esc-cli/esc_nc_cli delete-vim-connector <vim connector id
Deleting VIM user using command:
$/opt/cisco/esc/esc-confd/esc-cli/esc_nc_cli delete-vim-user <vim connector id> <vim user id>
POST /ESCManager/v0/vims/ HEADER: content-type, callback <?xml version="1.0"?> <vim_connector xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <id>example_vim</id> <type>OPENSTACK</type> <properties> <property> <name>os_auth_url</name> <value>{auth_url}</value> </property> <property> <name>os_project_name</name> <value>vimProject</value> </property> <!-- The project domain name is only needed for openstack v3 identity api --> <property> <name>os_project_domain_name</name> <value>default</value> </property> <property> <name>os_identity_api_version</name> <value>3</value> </property> </properties> </vim_connector>
Adding VIM user using REST:
POST /ESCManager/v0/vims/{vim_id}/vim_users HEADER: content-type, callback <?xml version="1.0"?> <user xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <id>my_user</id> <credentials> <properties> <property> <name>os_password</name> <value>cisco123</value> </property> <!-- The user domain name is only needed for openstack v3 identity api --> <property> <name>os_user_domain_name</name> <value>default</value> </property> </properties> </credentials> </user>
Update VIM using REST:
PUT /ESCManager/v0/vims/{vim_id} HEADER: content-type, callback <?xml version="1.0"?> <vim_connector xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <!--unique id for each vim--> <id>example_vim</id> <type>OPENSTACK</type> <properties> <property> <name>os_auth_url</name> <value>{auth_url}</value> </property> <property> <name>os_project_name</name> <value>vimProject</value> </property> <!-- The project domain name is only needed for openstack v3 identity api --> <property> <name>os_project_domain_name</name> <value>default</value> </property> <property> <name>os_identity_api_version</name> <value>3</value> </property> </properties> </vim_connector>
Update VIM user using REST:
PUT /ESCManager/v0/vims/{vim_id}/vim_users/{vim_user_id} HEADER: content-type, callback <?xml version="1.0"?> <user xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <id>my_user</id> <credentials> <properties> <property> <name>os_password</name> <value>cisco123</value> </property> <!-- The user domain name is only needed for openstack v3 identity api --> <property> <name>os_user_domain_name</name> <value>default</value> </property> </properties> </credentials> </user>
Delete VIM using REST:
DELETE /ESCManager/v0/vims/{vim_id}
Delete VIM user using REST:
DELETE /ESCManager/v0/vims/{vim_id}/vim_users/{user_id}
<?xml version="1.0" encoding="UTF-8"?> <notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0"> <eventTime>2016-10-06T16:24:05.856+00:00</eventTime> <escEvent xmlns="http://www.cisco.com/esc/esc"> <status>SUCCESS</status> <status_code>200</status_code> <status_message>Created vim connector successfully</status_message> <vim_connector_id>my-ucs-30</vim_connector_id> <event> <type>CREATE_VIM_CONNECTOR</type> </event> </escEvent> </notification>
In ESC 3.0, you can add multiple VIM Connector for Openstack VIM. Each VIM Connector can have only one VIM User.
VIM username and password can be updated at anytime. VIM endpoint will not be able to update after a resource is created through ESC.
After VIM is connected and VIM user is authenticated, VIM can no longer be deleted or updated, only VIM user can be deleted or updated.
The name of a VIM property or VIM user credentials property is not case sensitive, e.g. OS_AUTH_URL and os_auth_url is the same to ESC.
Rsyslog parameters are optional. If there is a need for customization after booting an ESC VM, you can edit the files in ESC VM (/etc/rsyslog.d/).
Step 1 | Open the
NTP configuration file /etc/ntp.conf in a text editor such as vi, or create a
new one if it does not already exist:
# vi /etc/ntp.conf |
Step 2 | Add or edit
the list of public NTP servers. If you don't specify the NTP server through the
installation, the file should contain the following default lines, but feel
free to change or expand these according to your needs:
server 0.rhel.pool.ntp.org iburst server 1.rhel.pool.ntp.org iburst server 2.rhel.pool.ntp.org iburst server 3.rhel.pool.ntp.org iburst server <your_ntp_server_ip> iburstThe iburst directive at the end of each line speeds up the initial synchronization. |
Step 3 | Once you
have the list of servers complete, in the same file, set the proper
permissions, giving the unrestricted access to localhost only. Make sure those
lines are there in your configure file.
restrict default kod nomodify notrap nopeer noquery restrict -6 default kod nomodify notrap nopeer noquery restrict 127.0.0.1 restrict -6 ::1 |
Step 4 | Save all
changes, exit the editor, and restart the NTP daemon:
# service ntpd restart |
Step 5 | Make sure
that ntpd is started at boot time:
# chkconfig ntpd on |
Step 1 | The
/etc/resolv.conf file contains the configuration for the DNS client (resolver).
It typically looks something like this:
search domain.com nameserver 8.8.4.4 |
Step 2 | You may
modify the IP address of the "nameserver" item or add new nameserver records.
search domain.com nameserver <your_first_dns_ip> nameserver <your_second_dns_ip> |
Step 3 | Restart
Network Service.
service network restart |
The /etc/hosts file allows you to add, edit, or remove hosts . This file contains IP addresses and their corresponding hostnames. If your network contains computers whose IP addresses are not listed in DNS, it is recommended that you add them to the /etc/hosts file.
For ESC VM, in /etc the file "localtime" is a link to or copy of a file containing information about your time zone. Access your zone information files from /usr/share/zoneinfo. To change the time zone, find your country, your city or a city in the same time zone from zone information files in /usr/share/zoneinfo and link it to the localtime in the /etc file.
$ ln \-sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
This section covers various post-install checks and operations using the escadm tool.
$ escadm dump resources: confd: init_aaa_users: - name: admin passwd: option: start-phase0 esc_service: group: - confd - mona - vimmanager - pgsql - escmanager - portal - monitor - snmp type: group escmanager: {} mona: {} monitor: {} pgsql: {} portal: {} snmp: run_forever: true vimmanager: {}
You can use escadm vim show command to verify the vim settings are correctly populated:
$ escadm vim show [ { "status": "CONNECTION_SUCCESSFUL", "status_message": "Successfully connected to VIM", "type": "OPENSTACK", "id": "default_openstack_vim", "properties": { "property": [ { "name": "os_auth_url", "value": "http://10.85.103.143:35357/v3" } ] } } ]
Problem: Issues encountered while verifying ESC services status at the installation time using escadm status.
Causes: Some services take time to start or have trouble starting.
$ cat /var/log/esc/escadm.log 2017-06-01 20:35:02,925: escadm.py(2565): INFO: promote drbd to master... 2017-06-01 20:35:02,934: escadm.py(2605): INFO: Waiting for at least one drbd to be UptoDate... 2017-06-01 20:35:02,942: escadm.py(2616): INFO: Waiting for peer drbd node to be demoted... 2017-06-01 20:35:14,008: escadm.py(2423): INFO: mount: /dev/drbd1 /opt/cisco/esc/esc_database 2017-06-01 20:35:14,017: escadm.py(1755): INFO: Starting filesystem service: [OK] 2017-06-01 20:35:15,039: escadm.py(1755): INFO: Starting vimmanager service: [OK] 2017-06-01 20:35:16,116: escadm.py(1755): INFO: Starting monitor service: [OK] 2017-06-01 20:35:17,163: escadm.py(1755): INFO: Starting mona service: [OK] 2017-06-01 20:35:18,440: escadm.py(1755): INFO: Starting snmp service: [OK] 2017-06-01 20:35:21,397: escadm.py(1770): INFO: Starting confd service:[FAILED] 2017-06-01 20:35:28,304: escadm.py(1755): INFO: Starting pgsql service: [OK] 2017-06-01 20:35:29,331: escadm.py(1755): INFO: Starting escmanager service: [OK] 2017-06-01 20:35:30,354: escadm.py(1755): INFO: Starting portal service: [OK] 2017-06-01 20:35:31,523: escadm.py(1755): INFO: Starting esc_service service: [OK]
$ escadm status --v 0 ESC status=0 ESC HA Master Healthy pgsql (pgid 61397) is running vimmanager (pgid 61138) is running monitor (pgid 61162) is running mona (pgid 61190) is running drbd is master snmp (pgid 61541) is running filesystem (pgid 0) is running bgp is dead keepalived (pgid 60838) is running portal (pgid 61524) is running confd (pgid 61263) is running escmanager (pgid 61491) is running
$ escadm bgp status// If the status is stopped or dead, manually start the services using the next command. $ escadm bgp start --v
![]() Note |
|
To log in to the ESC portal, do the following:
Register an instance of ESC. For more information on registering the ESC instance see, Installing Cisco Elastic Services Controller Using the QCOW Image
Ensure that you have the username and password.
Step 1 | Using your web
browser, enter the IP address of ESC and port 443.
Example: For example, if the IP address of ESC is 192.0.2.254, enter: https://192.0.2.254: 443 [ login via https] A Security Alert message is displayed. | ||
Step 2 | Click Yes to accept the security certificate. The Login page is displayed. | ||
Step 3 | Enter the
username and password and click
Login .
If you are logging in for the first time, the login page reappears, prompting you to change your password. | ||
Step 4 | Enter the old password in the Old Password field, then enter a new password in the New Password and Confirm Password fields. | ||
Step 5 | Click
Update
Password or press
Enter.
|