-
-
Save ccamacho/0018a2746f9caab0ec239775ebfbc99c to your computer and use it in GitHub Desktop.
BZ-1461350 host rename issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[stack@undercloud ~]$ cat /home/stack/hostname_change.yaml | |
parameter_defaults: | |
ComputeHostnameFormat: "plo-%stackname%-compute-t%index%" | |
ControllerHostnameFormat: "plo-%stackname%-controller-t%index%" | |
[stack@undercloud ~]$ openstack overcloud deploy \ | |
--libvirt-type qemu \ | |
--ntp-server pool.ntp.org \ | |
--templates /usr/share/openstack-tripleo-heat-templates \ | |
-e /usr/share/openstack-tripleo-heat-templates/overcloud-resource-registry-puppet.yaml \ | |
-e /usr/share/openstack-tripleo-heat-templates/environments/puppet-pacemaker.yaml \ | |
-e /home/stack/hostname_change.yaml | |
[stack@undercloud ~]$ nova list | |
+--------------------------------------+-----------------------------+--------+------------+-------------+------------------------+ | |
| ID | Name | Status | Task State | Power State | Networks | | |
+--------------------------------------+-----------------------------+--------+------------+-------------+------------------------+ | |
| d8801ae0-2e4c-4c1d-9a90-cc52ec90d673 | plo-overcloud-compute-t0 | BUILD | spawning | NOSTATE | ctlplane=192.168.24.16 | | |
| de6dc6fa-5b5c-450e-91d4-549c538fc6ba | plo-overcloud-controller-t0 | BUILD | spawning | NOSTATE | ctlplane=192.168.24.13 | | |
+--------------------------------------+-----------------------------+--------+------------+-------------+------------------------+ | |
[stack@undercloud ~]$ nova list | |
+--------------------------------------+-----------------------------+--------+------------+-------------+------------------------+ | |
| ID | Name | Status | Task State | Power State | Networks | | |
+--------------------------------------+-----------------------------+--------+------------+-------------+------------------------+ | |
| d4c25a49-ce14-469f-b41e-cb949a198d11 | plo-overcloud-compute-t0 | ACTIVE | - | Running | ctlplane=192.168.24.16 | | |
| a669b7b0-6aae-4e05-bbcb-9d4f781273fc | plo-overcloud-controller-t0 | ACTIVE | - | Running | ctlplane=192.168.24.6 | | |
+--------------------------------------+-----------------------------+--------+------------+-------------+------------------------+ | |
[stack@undercloud ~]$ heat stack-list | |
WARNING (shell) "heat stack-list" is deprecated, please use "openstack stack list" instead | |
+--------------------------------------+------------+--------------------+----------------------+--------------+ | |
| id | stack_name | stack_status | creation_time | updated_time | | |
+--------------------------------------+------------+--------------------+----------------------+--------------+ | |
| 3c020766-bdcd-4a09-a177-08aed01f58c2 | overcloud | CREATE_IN_PROGRESS | 2017-07-07T09:35:04Z | None | | |
+--------------------------------------+------------+--------------------+----------------------+--------------+ | |
2017-07-07 12:09:09Z [overcloud.AllNodesDeploySteps.ControllerPostPuppet]: CREATE_COMPLETE state changed | |
2017-07-07 12:09:09Z [overcloud.AllNodesDeploySteps]: CREATE_COMPLETE Stack CREATE completed successfully | |
2017-07-07 12:09:10Z [overcloud.AllNodesDeploySteps]: CREATE_COMPLETE state changed | |
2017-07-07 12:09:10Z [overcloud]: CREATE_COMPLETE Stack CREATE completed successfully | |
Stack overcloud CREATE_COMPLETE | |
Overcloud Endpoint: https://10.0.0.5:13000/v2.0 | |
Overcloud Deployed | |
+ status_code=0 | |
+ openstack stack list | |
+ grep -q overcloud | |
+ openstack stack list | |
+ grep -Eq '(CREATE|UPDATE)_COMPLETE' | |
+ exit 0 | |
[stack@undercloud ~]$ heat stack-list | |
WARNING (shell) "heat stack-list" is deprecated, please use "openstack stack list" instead | |
+--------------------------------------+------------+-----------------+----------------------+--------------+ | |
| id | stack_name | stack_status | creation_time | updated_time | | |
+--------------------------------------+------------+-----------------+----------------------+--------------+ | |
| c2927d9f-284f-454d-a815-e6f527efeebc | overcloud | CREATE_COMPLETE | 2017-07-07T11:33:46Z | None | | |
+--------------------------------------+------------+-----------------+----------------------+--------------+ | |
# UPgrade your Undercloud | |
# You need to run some previos checks/tasks.. | |
[stack@undercloud ~]$ openstack undercloud upgrade | |
. | |
. | |
. | |
2017-07-07 09:01:39,897 INFO: | |
############################################################################# | |
Undercloud upgrade complete. | |
The file containing this installation's passwords is at | |
/home/stack/undercloud-passwords.conf. | |
There is also a stackrc file at /home/stack/stackrc. | |
These files are needed to interact with the OpenStack services, and should be | |
secured. | |
############################################################################# | |
[stack@undercloud ~]$ /bin/bash -c "cat <<EOF>>$HOME/init-repo.yaml | |
parameter_defaults: | |
UpgradeInitCommand: | | |
set -e | |
yum localinstall -y http://download.lab.bos.redhat.com/rcm-guest/puddles/OpenStack/rhos-release/rhos-release-latest.noarch.rpm | |
rhos-release 11 | |
yum-config-manager --disable 'rhelosp-10.0*' | |
yum clean all | |
EOF" | |
# Check that your controller is able to connect to Internet with the DNS working properly.. | |
# Be sure you have your nodes registered correctly!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
[heat-admin@plo-overcloud-controller-t0 ~]$ sudo subscription-manager register --username xxx --password xxx --auto-attach | |
[heat-admin@plo-overcloud-compute-t0 ~]$ sudo subscription-manager register --username xxx --password xxx --auto-attach | |
# ALso you must have the RedHat CA installed | |
# q: [Errno 14] curl#58 - "unable to load client key: -8178 (SEC_ERROR_BAD_KEY)" Trying other mirror. | |
sudo subscription-manager repos --enable rhel-7-server-optional-source-rpms | |
sudo subscription-manager repos --enable rhel-7-server-optional-rpms | |
sudo yum -y install /usr/bin/c_rehash ca-certificates | |
sudo update-ca-trust check | |
sudo update-ca-trust force-enable | |
sudo update-ca-trust enable | |
wget -O cert.pem https://mojo.redhat.com/servlet/JiveServlet/download/1029448-5-1056646/2015-RH-IT-Root-CA.pem | |
sudo cp cert.pem /etc/pki/tls/certs/ | |
sudo cp cert.pem /etc/pki/ca-trust/source/anchors/ | |
sudo c_rehash | |
sudo update-ca-trust extract | |
# Check that the CA is installed correctly | |
# Install CDN redhat cert | |
wget https://www.dropbox.com/s/8z2z3eg3jt7ziz1/cdn.redhat.com.crt | |
sudo cp cdn.redhat.com.crt /etc/pki/ca-trust/source/anchors/ | |
sudo update-ca-trust extract | |
# Upgrade command... | |
[stack@undercloud ~]$ openstack overcloud deploy \ | |
--libvirt-type qemu \ | |
--ntp-server pool.ntp.org \ | |
--templates /usr/share/openstack-tripleo-heat-templates \ | |
-e /usr/share/openstack-tripleo-heat-templates/overcloud-resource-registry-puppet.yaml \ | |
-e /usr/share/openstack-tripleo-heat-templates/environments/puppet-pacemaker.yaml \ | |
-e /home/stack/hostname_change.yaml \ | |
-e /usr/share/openstack-tripleo-heat-templates/environments/major-upgrade-composable-steps.yaml \ | |
-e init-repo.yaml | |
[stack@undercloud ~]$ openstack overcloud deploy --libvirt-type qemu --ntp-server pool.ntp.org --templates /usr/share/openstack-tripleo-heat-templates -e /usr/share/openstack-tripleo-heat-templates/overcloud-resource-registry-puppet.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/puppet-pacemaker.yaml -e /home/stack/hostname_change.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/major-upgrade-composable-steps.yaml -e init-repo.yaml | |
Removing the current plan files | |
Uploading new plan files | |
Started Mistral Workflow tripleo.plan_management.v1.update_deployment_plan. Execution ID: c4545fd6-a3ee-4441-887c-8dd477584de4 | |
Plan updated | |
Deploying templates in the directory /tmp/tripleoclient-SCgYWE/tripleo-heat-templates | |
Started Mistral Workflow tripleo.deployment.v1.deploy_plan. Execution ID: b998a986-f9c5-40b5-b435-3ef90c805096 | |
2017-07-10 11:01:16Z [ServiceNetMap]: UPDATE_IN_PROGRESS state changed | |
2017-07-10 11:01:16Z [overcloud-ServiceNetMap-2z4kygknw2fe]: UPDATE_IN_PROGRESS Stack UPDATE started | |
2017-07-10 11:01:16Z [Networks]: UPDATE_IN_PROGRESS state changed | |
2017-07-10 11:01:17Z [overcloud-ServiceNetMap-2z4kygknw2fe]: UPDATE_COMPLETE Stack UPDATE completed successfully | |
2017-07-10 11:01:17Z [overcloud-Networks-ucf7i3rg3xgd]: UPDATE_IN_PROGRESS Stack UPDATE started | |
2017-07-10 11:01:17Z [DefaultPasswords]: UPDATE_IN_PROGRESS state changed | |
. | |
. | |
. | |
. | |
2017-07-10 11:31:56Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.ControllerDeployment_Step4]: CREATE_IN_PROGRESS state changed | |
2017-07-10 11:31:57Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.CephStorageDeployment_Step4]: CREATE_IN_PROGRESS state changed | |
2017-07-10 11:31:58Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.BlockStorageDeployment_Step4]: CREATE_COMPLETE state changed | |
2017-07-10 11:31:58Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.CephStorageDeployment_Step4]: CREATE_COMPLETE state changed | |
2017-07-10 11:35:55Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.ControllerDeployment_Step4]: CREATE_COMPLETE state changed | |
2017-07-10 11:35:55Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.ControllerDeployment_Step5]: CREATE_IN_PROGRESS state changed | |
2017-07-10 11:35:55Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.CephStorageDeployment_Step5]: CREATE_IN_PROGRESS state changed | |
2017-07-10 11:35:55Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.BlockStorageDeployment_Step5]: CREATE_IN_PROGRESS state changed | |
2017-07-10 11:35:56Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.CephStorageDeployment_Step5]: CREATE_COMPLETE state changed | |
2017-07-10 11:35:56Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.BlockStorageDeployment_Step5]: CREATE_COMPLETE state changed | |
2017-07-10 11:39:40Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.ControllerDeployment_Step5]: CREATE_COMPLETE state changed | |
2017-07-10 11:39:40Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.CephStorageExtraConfigPost]: CREATE_IN_PROGRESS state changed | |
2017-07-10 11:39:40Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.ControllerExtraConfigPost]: CREATE_IN_PROGRESS state changed | |
2017-07-10 11:39:40Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.BlockStorageExtraConfigPost]: CREATE_IN_PROGRESS state changed | |
2017-07-10 11:39:41Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.ControllerExtraConfigPost]: CREATE_COMPLETE state changed | |
2017-07-10 11:39:41Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.BlockStorageExtraConfigPost]: CREATE_COMPLETE state changed | |
2017-07-10 11:39:41Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.CephStorageExtraConfigPost]: CREATE_COMPLETE state changed | |
2017-07-10 11:39:41Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.BlockStoragePostConfig]: CREATE_IN_PROGRESS state changed | |
2017-07-10 11:39:41Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.CephStoragePostConfig]: CREATE_IN_PROGRESS state changed | |
2017-07-10 11:39:41Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.ControllerPostConfig]: CREATE_IN_PROGRESS state changed | |
2017-07-10 11:39:42Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.CephStoragePostConfig]: CREATE_COMPLETE state changed | |
2017-07-10 11:39:42Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.BlockStoragePostConfig]: CREATE_COMPLETE state changed | |
2017-07-10 11:41:27Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps.ControllerPostConfig]: CREATE_COMPLETE state changed | |
2017-07-10 11:41:27Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps]: CREATE_COMPLETE Stack CREATE completed successfully | |
2017-07-10 11:41:28Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm.AllNodesPostUpgradeSteps]: CREATE_COMPLETE state changed | |
2017-07-10 11:41:43Z [overcloud-AllNodesDeploySteps-4jpydzfi7psm]: UPDATE_COMPLETE Stack UPDATE completed successfully | |
2017-07-10 11:41:43Z [AllNodesDeploySteps]: UPDATE_COMPLETE state changed | |
2017-07-10 11:41:55Z [overcloud]: UPDATE_COMPLETE Stack UPDATE completed successfully | |
Stack overcloud UPDATE_COMPLETE | |
Overcloud Endpoint: http://192.168.24.15:5000/v2.0 | |
Overcloud Deployed | |
[stack@undercloud ~]$ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment