文档章节

Openstack部署过程

R
 Robotcl_Blog
发布于 2019/11/21 18:26
字数 6610
阅读 20
收藏 0

一、director 安装准备

1. 准备undercloud

[root@localhost ~]# useradd stack
[root@localhost ~]# passwd stack
Changing password for user stack.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.
[root@localhost ~]# echo "stack ALL=(root) NOPASSWD:ALL" | tee -a /etc/sudoers.d/stack
stack ALL=(root) NOPASSWD:ALL
[root@localhost ~]# chmod 0440 /etc/sudoers.d/stack
[root@localhost ~]# su - stack
[stack@localhost ~]$ pwd
/home/stack
[stack@localhost ~]$ mkdir ~/images
[stack@localhost ~]$ mkdir ~/templates
[stack@localhost ~]$ ls
images  templates
[stack@localhost ~]$ hostname
localhost.localdomain
[stack@localhost ~]$ hostname -f
localhost
[stack@localhost ~]$ sudo hostnamectl set-hostname director.localdomain
[stack@localhost ~]$ hostname
director.localdomain
[stack@localhost ~]$ hostname -f
localhost
[stack@localhost ~]$ sudo hostnamectl set-hostname --transient director.localdomain
[stack@localhost ~]$ hostnamectl
   Static hostname: director.localdomain
         Icon name: computer-desktop
           Chassis: desktop
        Machine ID: 12e731436d9f4f61b645d9473a12e589
           Boot ID: 1b13fcd5b9d644d2874785ab9a485234
  Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: Linux 3.10.0-1062.el7.x86_64
      Architecture: x86-64
[stack@localhost ~]$ sudo vi /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.24.1 director.localdomain director
[stack@director ~]$ sudo subscription-manager register
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: robotctl
Password:
The system has been registered with ID: 1a756441-ba3b-48dc-b685-fb9567b4d33b
The registered system name is: director.localdomain
[stack@director ~]$ sudo subscription-manager list --available --all --matches="Red Hat OpenStack"
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+
Subscription Name:   Red Hat OpenStack Platform, Self-Support (4 Sockets, NFR, Partner Only)
Provides:            dotNET on RHEL Beta (for RHEL Server)
                     Red Hat CodeReady Linux Builder for x86_64
                     Red Hat Enterprise Linux FDIO Early Access (RHEL 7 Server)
                     Red Hat Ansible Engine
                     Red Hat Ceph Storage
                     Red Hat OpenStack Certification Test Suite
                     Red Hat Software Collections (for RHEL Server for IBM Power LE)
                     Red Hat Enterprise Linux Atomic Host Beta
                     Red Hat Enterprise Linux Fast Datapath
                     Red Hat OpenStack Beta
                     Red Hat CloudForms
                     Red Hat Software Collections Beta (for RHEL Server for IBM Power LE)
                     Red Hat Enterprise Linux Load Balancer (for RHEL Server)
                     Red Hat Enterprise Linux Advanced Virtualization Beta
                     Red Hat Beta
                     Red Hat Enterprise Linux Fast Datapath (for RHEL Server for IBM Power LE)
                     Red Hat Enterprise Linux High Availability for Power, little endian
                     Red Hat Enterprise Linux High Availability for x86_64
                     Red Hat Single Sign-On
                     dotNET on RHEL (for RHEL Server)
                     Red Hat Certification (for RHEL Server)
                     Red Hat Ceph Storage Calamari
                     Red Hat Developer Tools (for RHEL Server for IBM Power LE)
                     Red Hat OpenStack Beta Certification Test Suite
                     Red Hat Enterprise Linux Advanced Virtualization
                     Red Hat CloudForms Beta
                     Red Hat Developer Tools Beta (for RHEL Server for IBM Power LE)
                     Red Hat Enterprise Linux High Availability (for IBM Power LE) - Extended
                     Update Support
                     Red Hat OpenStack Beta for IBM Power LE
                     Red Hat Enterprise Linux Fast Datapath Beta for Power, little endian
                     Red Hat Software Collections (for RHEL Server)
                     Red Hat OpenStack
                     Red Hat Enterprise Linux Server (for IBM Power LE) - Update Services for
                     SAP Solutions
                     Red Hat Enterprise Linux for Power 9
                     Red Hat Enterprise Linux Atomic Host
                     Red Hat OpenStack for IBM Power
                     Red Hat Enterprise Linux for Real Time for NFV
                     Red Hat Enterprise Linux Fast Datapath Beta for x86_64
                     Red Hat Enterprise MRG Messaging
                     Red Hat Software Collections Beta (for RHEL Server)
                     Red Hat Enterprise Linux Server
                     Red Hat Enterprise Linux for x86_64
                     Red Hat Ceph Storage MON
                     Red Hat Enterprise Linux FDIO (RHEL 7 Server)
SKU:                 SER0504
Contract:            11911379
Pool ID:             6a85f99b69fd5d08016a492f7e851e90
Provides Management: No
Available:           3
Suggested:           1
Service Level:       Self-Support
Service Type:        L1-L3
Subscription Type:   Standard
Starts:              04/23/2019
Ends:                04/22/2020
System Type:         Physical

[stack@director ~]$ sudo subscription-manager attach --pool=6a85f99b69fd5d08016a492f7e851e90
Successfully attached a subscription for: Red Hat OpenStack Platform, Self-Support (4 Sockets, NFR, Partner Only)
[stack@director ~]$ sudo subscription-manager repos --disable=*
Repository 'rhel-7-server-dotnet-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-11-devtools-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-2-mon-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-insights-3-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-maintenance-6-beta-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-10-optools-source-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6.2-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-12-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-6.0-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-ansible-2-rpms' is disabled for this system.
Repository 'rhel-7-server-v2vwin-1-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6.3-puppet4-debug-rpms' is disabled for this system.
Repository 'rhel-server-rhscl-7-eus-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-14-source-rpms' is disabled for this system.
Repository 'rhel-ha-for-rhel-7-server-fastrack-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-14-rpms' is disabled for this system.
Repository 'cf-me-5.10-for-rhel-7-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-2-tools-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-1.3-mon-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6.4-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-13-optools-rpms' is disabled for this system.
Repository 'rhel-7-server-extras-rpms' is disabled for this system.
Repository 'rhel-7-server-ansible-2-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-12-devtools-source-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-2-textonly-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-1.3-calamari-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-rhn-tools-beta-rpms' is disabled for this system.
Repository 'rhel-7-server-supplementary-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-13-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-14-devtools-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-1.2-calamari-source-rpms' is disabled for this system.
Repository 'rhel-server-rhscl-7-beta-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-devtools-beta-rpms' is disabled for this system.
Repository 'rhel-7-fast-datapath-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-7.0-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-maintenance-6-rpms' is disabled for this system.
Repository 'cf-me-5.8-for-rhel-7-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-beta-source-rpms' is disabled for this system.
Repository 'cf-me-for-rhel-7-beta-source-rpms' is disabled for this system.
Repository 'rhel-7-server-rh-common-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-9-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-8-optools-source-rpms' is disabled for this system.
Repository 'rhel-7-server-ansible-2.9-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-11-source-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-maintenance-6-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6-puppet-upgrade-beta-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-1.3-installer-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-6.0-source-rpms' is disabled for this system.
Repository 'rhel-7-server-optional-beta-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6.2-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-12-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-7.0-director-debug-rpms' is disabled for this system.
Repository 'rh-sso-textonly-1-for-middleware-rpms' is disabled for this system.
Repository 'rh-gluster-3-client-for-rhel-7-server-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-optional-fastrack-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-ansible-2.6-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-11-tools-debug-rpms' is disabled for this system.
Repository 'rh-sso-7.1-for-rhel-7-server-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-12-optools-source-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6.2-source-rpms' is disabled for this system.
Repository 'cf-me-5.7-for-rhel-7-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-9-tools-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-8-source-rpms' is disabled for this system.
Repository 'rhel-7-server-dotnet-source-rpms' is disabled for this system.
Repository 'rhel-ha-for-rhel-7-server-fastrack-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-1.2-mon-source-rpms' is disabled for this system.
Repository 'cf-me-5.10-for-rhel-7-source-rpms' is disabled for this system.
Repository 'cf-me-5.8-for-rhel-7-rpms' is disabled for this system.
Repository 'cf-me-5.9-for-rhel-7-debug-rpms' is disabled for this system.
Repository 'rhel-ha-for-rhel-7-server-beta-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-7.0-director-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-8-optools-rpms' is disabled for this system.
Repository 'rhel-7-server-ansible-2.8-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-13-rpms' is disabled for this system.
Repository 'rhel-7-server-supplementary-beta-source-rpms' is disabled for this system.
Repository 'cf-me-5.5-for-rhel-7-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-1.2-installer-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-12-devtools-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6.5-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-9-director-source-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-1.2-calamari-debug-rpms' is disabled for this system.
Repository 'rh-sso-7.3-for-rhel-7-server-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6.6-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-9-tools-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-11-devtools-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-9-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-ansible-2.7-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-10-source-rpms' is disabled for this system.
Repository 'rhel-7-server-beta-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6.4-rpms' is disabled for this system.
Repository 'rh-sso-7.2-for-rhel-7-server-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-9-optools-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-v2vwin-1-rpms' is disabled for this system.
Repository 'cf-me-5.6-for-rhel-7-source-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-1.2-mon-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-10-optools-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-12-optools-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-14-optools-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-10-tools-rpms' is disabled for this system.
Repository 'rhel-7-server-cert-beta-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-13-devtools-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-14-tools-rpms' is disabled for this system.
Repository 'rhel-server-rhscl-7-eus-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-11-optools-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-10-tools-source-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-3-mon-debug-rpms' is disabled for this system.
Repository 'cf-me-5.9-for-rhel-7-source-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6.6-source-rpms' is disabled for this system.
Repository 'rhel-7-server-ansible-2.4-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-10-devtools-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-9-director-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-10-devtools-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-11-optools-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-6.0-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-13-optools-source-rpms' is disabled for this system.
Repository 'rhel-7-server-extras-beta-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-6.0-cts-source-rpms' is disabled for this system.
Repository 'rhel-server-rhscl-7-rpms' is disabled for this system.
Repository 'cf-me-5.7-for-rhel-7-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-12-optools-debug-rpms' is disabled for this system.
Repository 'cf-me-5.8-for-rhel-7-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-cert-beta-rpms' is disabled for this system.
Repository 'rhel-7-server-rhn-tools-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-13-tools-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-1.3-mon-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-1.3-tools-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-7.0-debug-rpms' is disabled for this system.
Repository 'cf-me-5.7-for-rhel-7-source-rpms' is disabled for this system.
Repository 'rhel-7-server-fastrack-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-14-tools-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-1.2-installer-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-5.0-rpms' is disabled for this system.
Repository 'rhel-7-server-dotnet-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-maintenance-6-beta-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-1.2-calamari-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-10-devtools-source-rpms' is disabled for this system.
Repository 'rhel-server-rhscl-7-beta-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-ansible-2.8-source-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-3-mon-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6-puppet-upgrade-beta-source-rpms' is disabled for this system.
Repository 'rhel-7-server-ansible-2.6-source-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6.5-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-6.0-cts-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-13-tools-source-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-1.3-calamari-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-8-director-debug-rpms' is disabled for this system.
Repository 'rhel-x86_64-server-7-mrg-messaging-2-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-12-devtools-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-14-devtools-source-rpms' is disabled for this system.
Repository 'rhel-7-server-extras-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-9-director-rpms' is disabled for this system.
Repository 'cf-me-5.9-for-rhel-7-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-1.2-mon-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-6.0-installer-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-ansible-2.5-source-rpms' is disabled for this system.
Repository 'cf-me-for-rhel-7-beta-rpms' is disabled for this system.
Repository 'rhel-7-server-ansible-2.9-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-11-rpms' is disabled for this system.
Repository 'rhel-x86_64-server-7-mrg-messaging-2-rpms' is disabled for this system.
Repository 'rhel-7-server-fastrack-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-beta-cts-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-13-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-8-director-rpms' is disabled for this system.
Repository 'rhel-7-server-insights-3-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-5.0-cts-source-rpms' is disabled for this system.
Repository 'rhel-server-rhscl-7-beta-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-14-devtools-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6.1-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-9-tools-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-ansible-2.9-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-7.0-director-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-9-optools-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-optools-beta-source-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6-beta-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-beta-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-1.3-installer-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-extras-beta-source-rpms' is disabled for this system.
Repository 'rhel-7-server-ansible-2.7-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-optools-beta-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-devtools-beta-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-1.3-mon-source-rpms' is disabled for this system.
Repository 'rhel-7-server-cert-rpms' is disabled for this system.
Repository 'rhel-ha-for-rhel-7-server-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-8-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-1.2-installer-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-14-debug-rpms' is disabled for this system.
Repository 'rh-sso-7.3-for-rhel-7-server-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-2-tools-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-rh-common-beta-rpms' is disabled for this system.
Repository 'cf-me-for-rhel-7-beta-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-cert-source-rpms' is disabled for this system.
Repository 'rhel-7-server-optional-debug-rpms' is disabled for this system.
Repository 'rhel-server-rhscl-7-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-14-optools-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-7.0-source-rpms' is disabled for this system.
Repository 'rh-sso-7.2-for-rhel-7-server-rpms' is disabled for this system.
Repository 'rhel-7-server-insights-3-source-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6.5-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-10-optools-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-2-mon-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-14-tools-source-rpms' is disabled for this system.
Repository 'cf-me-5.10-for-rhel-7-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-extras-debug-rpms' is disabled for this system.
Repository 'rh-sso-7.3-for-rhel-7-server-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-13-devtools-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-maintenance-6-source-rpms' is disabled for this system.
Repository 'rhel-server-rhscl-7-source-rpms' is disabled for this system.
Repository 'rhel-ha-for-rhel-7-server-beta-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-12-tools-source-rpms' is disabled for this system.
Repository 'rhel-7-server-rhn-tools-beta-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-5.0-cts-rpms' is disabled for this system.
Repository 'rhel-7-server-rh-common-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-11-optools-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6-puppet-upgrade-beta-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-7.0-optools-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-2-mon-source-rpms' is disabled for this system.
Repository 'rhel-7-server-ansible-2.8-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-dotnet-beta-rpms' is disabled for this system.
Repository 'rhel-7-server-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-14-optools-source-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6.3-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-12-tools-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-12-tools-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-9-optools-rpms' is disabled for this system.
Repository 'rhel-7-server-rh-common-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-devtools-beta-source-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-3-mon-source-rpms' is disabled for this system.
Repository 'rhel-7-server-v2vwin-1-source-rpms' is disabled for this system.
Repository 'rh-sso-7.2-for-rhel-7-server-source-rpms' is disabled for this system.
Repository 'rhel-7-server-rh-common-beta-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-rh-common-beta-source-rpms' is disabled for this system.
Repository 'rhel-7-server-fastrack-source-rpms' is disabled for this system.
Repository 'rhel-7-fdio-early-access-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-7.0-optools-source-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-1.3-installer-rpms' is disabled for this system.
Repository 'rhel-7-server-supplementary-beta-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-3-tools-rpms' is disabled for this system.
Repository 'rhel-7-server-optional-beta-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-11-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-beta-cts-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-7.0-tools-debug-rpms' is disabled for this system.
Repository 'rhel-7-fdio-early-access-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-8-optools-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-2-tools-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-optools-beta-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6.3-puppet4-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-12-source-rpms' is disabled for this system.
Repository 'rhel-7-server-ansible-2.4-rpms' is disabled for this system.
Repository 'rhel-7-server-ansible-2.5-rpms' is disabled for this system.
Repository 'rhel-7-fast-datapath-htb-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-6.0-cts-rpms' is disabled for this system.
Repository 'rhel-7-server-ansible-2-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-ansible-2.7-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-10-rpms' is disabled for this system.
Repository 'rhel-7-server-rhn-tools-beta-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-9-rpms' is disabled for this system.
Repository 'rhel-7-fast-datapath-htb-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-beta-cts-source-rpms' is disabled for this system.
Repository 'rhel-ha-for-rhel-7-server-rpms' is disabled for this system.
Repository 'rh-sso-7.1-for-rhel-7-server-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-3-textonly-rpms' is disabled for this system.
Repository 'rh-gluster-3-client-for-rhel-7-server-rpms' is disabled for this system.
Repository 'rhel-7-server-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-1.3-tools-debug-rpms' is disabled for this system.
Repository 'rhel-7-fast-datapath-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-8-tools-source-rpms' is disabled for this system.
Repository 'rhel-server-rhscl-7-eus-rpms' is disabled for this system.
Repository 'rhel-7-server-supplementary-beta-debug-rpms' is disabled for this system.
Repository 'rh-gluster-3-client-for-rhel-7-server-source-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6.3-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-optional-fastrack-source-rpms' is disabled for this system.
Repository 'cf-me-5.6-for-rhel-7-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-5.0-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-7.0-tools-rpms' is disabled for this system.
Repository 'rhel-7-fdio-early-access-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-13-devtools-source-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6.6-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-11-devtools-source-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6.3-source-rpms' is disabled for this system.
Repository 'rhel-7-fdio-source-rpms' is disabled for this system.
Repository 'rhel-7-server-optional-fastrack-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-5.0-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-7.0-optools-debug-rpms' is disabled for this system.
Repository 'rhel-ha-for-rhel-7-server-beta-rpms' is disabled for this system.
Repository 'cf-me-5.6-for-rhel-7-rpms' is disabled for this system.
Repository 'rhel-7-fdio-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-8-tools-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-1.3-tools-rpms' is disabled for this system.
Repository 'rhel-7-server-nfv-source-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6.3-puppet4-source-rpms' is disabled for this system.
Repository 'rhel-7-fast-datapath-htb-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6-beta-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-11-tools-rpms' is disabled for this system.
Repository 'rhel-7-server-dotnet-beta-source-rpms' is disabled for this system.
Repository 'rhel-7-fdio-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-8-tools-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-10-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6.1-source-rpms' is disabled for this system.
Repository 'rhel-7-server-supplementary-source-rpms' is disabled for this system.
Repository 'rhel-7-server-extras-beta-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-8-rpms' is disabled for this system.
Repository 'rhel-7-server-ansible-2.5-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-5.0-cts-debug-rpms' is disabled for this system.
Repository 'rh-sso-7.1-for-rhel-7-server-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-rpms' is disabled for this system.
Repository 'cf-me-5.5-for-rhel-7-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-nfv-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-ansible-2.6-rpms' is disabled for this system.
Repository 'rhel-ha-for-rhel-7-server-fastrack-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-8-director-source-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-1.3-calamari-rpms' is disabled for this system.
Repository 'rhel-7-server-dotnet-beta-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-beta-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-supplementary-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-13-optools-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6.1-rpms' is disabled for this system.
Repository 'rhel-7-server-nfv-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-11-tools-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-10-tools-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-3-tools-debug-rpms' is disabled for this system.
Repository 'rhel-ha-for-rhel-7-server-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-optional-rpms' is disabled for this system.
Repository 'rhel-x86_64-server-7-mrg-messaging-2-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6.4-source-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-tools-6-beta-rpms' is disabled for this system.
Repository 'rhel-7-server-beta-source-rpms' is disabled for this system.
Repository 'rhel-7-server-satellite-maintenance-6-beta-source-rpms' is disabled for this system.
Repository 'cf-me-5.5-for-rhel-7-source-rpms' is disabled for this system.
Repository 'rhel-7-server-ansible-2.4-source-rpms' is disabled for this system.
Repository 'rhel-7-server-rhn-tools-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-6.0-installer-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-13-tools-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-rhn-tools-debug-rpms' is disabled for this system.
Repository 'rhel-7-fast-datapath-source-rpms' is disabled for this system.
Repository 'rhel-7-server-beta-debug-rpms' is disabled for this system.
Repository 'rhel-7-server-optional-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-7.0-tools-source-rpms' is disabled for this system.
Repository 'rhel-7-server-openstack-6.0-installer-rpms' is disabled for this system.
Repository 'rhel-7-server-optional-beta-rpms' is disabled for this system.
Repository 'rhel-7-server-rhceph-3-tools-source-rpms' is disabled for this system.
[stack@director ~]$ sudo subscription-manager repos --enable=rhel-7-server-rpms --enable=rhe-server-extras-rpms --enable=rhel-7-server-rh-common-rpms --enable=rhel-ha-for-rhel-7-serverms --enable=rhel-7-server-openstack-14-rpms
Repository 'rhel-7-server-rpms' is enabled for this system.
Repository 'rhel-ha-for-rhel-7-server-rpms' is enabled for this system.
Repository 'rhel-7-server-extras-rpms' is enabled for this system.
Repository 'rhel-7-server-openstack-14-rpms' is enabled for this system.
Repository 'rhel-7-server-rh-common-rpms' is enabled for this system.
[root@director ~]# sudo yum update -y
Loaded plugins: product-id, search-disabled-repos, subscription-manager
No packages marked for update
[root@director ~]# sudo reboot
---
[root@director ~]# sudo yum install -y python-tripleoclient
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Package python-tripleoclient-10.6.2-0.20190425150607.el7ost.noarch already installed and latest version

部署疑惑:

  • 3.1.9:另外,director 还需要在 /etc/hosts 中包括一个带有系统主机名和基础名称的条目。/etc/hosts 中的 IP 地址必须与您计划用于 undercloud 公共 API 的地址匹配。例如,如果系统名是 manager.example.com,其使用的 IP 地址是 10.0.0.1,/etc/hosts 则需要包括一个与以下内容类似的条目:
    问题: 什么是用于undercloud 公共 API 的地址?
10.0.0.1  manager.example.com manager
  • 问题:没有可用的ceph-ansible包
[stack@director ~]$ sudo yum install -y ceph-ansible
Loaded plugins: product-id, search-disabled-repos, subscription-manager
No package ceph-ansible available.
  • 解决:
[stack@director ~]$ sudo subscription-manager repos --enable=rhel-7-server-rhceph-3-tools-rpms
Repository 'rhel-7-server-rhceph-3-tools-rpms' is enabled for this system.
[stack@director ~]$ sudo yum update -y
Loaded plugins: product-id, search-disabled-repos, subscription-manager
No packages marked for update
[stack@director ~]$ sudo yum install -y ceph-ansible
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Package ceph-ansible-3.2.30.1-1.el7cp.noarch already installed and latest version
Nothing to do
[stack@director ~]$ sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Loaded plugins: product-id, search-disabled-repos, subscription-manager
epel-release-latest-7.noarch.rpm                                            |  15 kB  00:00:00
Examining /var/tmp/yum-root-WtDdCL/epel-release-latest-7.noarch.rpm: epel-release-7-12.noarch
Marking /var/tmp/yum-root-WtDdCL/epel-release-latest-7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-12 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================
 Package               Arch            Version        Repository                              Size
===================================================================================================
Installing:
 epel-release          noarch          7-12           /epel-release-latest-7.noarch           24 k

Transaction Summary
===================================================================================================
Install  1 Package

Total size: 24 k
Installed size: 24 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : epel-release-7-12.noarch                                                        1/1
  Verifying  : epel-release-7-12.noarch                                                        1/1

Installed:
  epel-release.noarch 0:7-12

Complete!
[stack@director ~]$ sudo yum update -y
Loaded plugins: product-id, search-disabled-repos, subscription-manager
No packages marked for update

2. 准备容器镜像

[stack@director ~]$ openstack tripleo container image prepare default \
> --local-push-destination \
> --output-env-file containers-prepare-parameter.yaml
# Generated with the following on 2019-12-06T04:07:10.253611
#
#   openstack tripleo container image prepare default --local-push-destination --output-env-file containers-prepare-parameter.yaml
#

parameter_defaults:
  ContainerImagePrepare:
  //excludes:用于排除过滤器的镜像名称子字符串列表
  - excludes:
    - openshift
    //push_destination:用于在上传过程中推送镜像的注册表的命名空间。如果您指定这个参数的命名空间,则所有镜像参数也会使用此命名空间。如果设为 ture,则 push_destination 设为 underclound 注册表命名空间
    push_destination: true
    //set:用于定义从何处获取初始镜像的 key:value 定义的字典
    set:
      //ceph_image:Ceph Storage容器镜像的名称
      ceph_image: rhceph-3-rhel7
      //ceph_namespace:Ceph Storage容器镜像的命名空间
      ceph_namespace: registry.access.redhat.com/rhceph
      //ceph_tag:Ceph Storage容器镜像的标签
      ceph_tag: latest
      //name_prefix:各个OpenStack辅助镜像的前缀
      name_prefix: openstack-
      name_suffix: ''
      namespace: registry.access.redhat.com/rhosp14
      neutron_driver: null
      openshift_asb_namespace: registry.access.redhat.com/openshift3
      openshift_cluster_monitoring_namespace: registry.access.redhat.com/openshift3
      openshift_cockpit_namespace: registry.access.redhat.com/openshift3
      openshift_configmap_reload_namespace: registry.access.redhat.com/openshift3
      openshift_etcd_image: etcd
      openshift_etcd_namespace: registry.access.redhat.com/rhel7
      openshift_etcd_tag: latest
      openshift_gluster_block_image: rhgs-gluster-block-prov-rhel7
      openshift_gluster_image: rhgs-server-rhel7
      openshift_gluster_namespace: registry.access.redhat.com/rhgs3
      openshift_gluster_tag: v3.11
      openshift_grafana_namespace: registry.access.redhat.com/openshift3
      openshift_heketi_image: rhgs-volmanager-rhel7
      openshift_heketi_namespace: registry.access.redhat.com/rhgs3
      openshift_heketi_tag: v3.11
      openshift_kube_rbac_proxy_namespace: registry.access.redhat.com/openshift3
      openshift_kube_state_metrics_namespace: registry.access.redhat.com/openshift3
      openshift_namespace: registry.access.redhat.com/openshift3
      openshift_prometheus_config_reload_namespace: registry.access.redhat.com/openshift3
      openshift_prometheus_operator_namespace: registry.access.redhat.com/openshift3
      tag: latest
    tag_from_label: '{version}-{release}'
  - includes:
    - openshift
    push_destination: true
    set:
      openshift_asb_namespace: registry.access.redhat.com/openshift3
      openshift_asb_tag: v3.11
      openshift_cluster_monitoring_image: ose-cluster-monitoring-operator
      openshift_cluster_monitoring_namespace: registry.access.redhat.com/openshift3
      openshift_cluster_monitoring_tag: v3.11
      openshift_cockpit_image: registry-console
      openshift_cockpit_namespace: registry.access.redhat.com/openshift3
      openshift_cockpit_tag: v3.11
      openshift_configmap_reload_image: ose-configmap-reloader
      openshift_configmap_reload_namespace: registry.access.redhat.com/openshift3
      openshift_configmap_reload_tag: v3.11
      openshift_grafana_namespace: registry.access.redhat.com/openshift3
      openshift_grafana_tag: v3.11
      openshift_kube_rbac_proxy_image: ose-kube-rbac-proxy
      openshift_kube_rbac_proxy_namespace: registry.access.redhat.com/openshift3
      openshift_kube_rbac_proxy_tag: v3.11
      openshift_kube_state_metrics_image: ose-kube-state-metrics
      openshift_kube_state_metrics_namespace: registry.access.redhat.com/openshift3
      openshift_kube_state_metrics_tag: v3.11
      openshift_namespace: registry.access.redhat.com/openshift3
      openshift_oauth_proxy_tag: v3.11
      openshift_prefix: ose
      openshift_prometheus_alertmanager_tag: v3.11
      openshift_prometheus_config_reload_image: ose-prometheus-config-reloader
      openshift_prometheus_config_reload_namespace: registry.access.redhat.com/openshift3
      openshift_prometheus_config_reload_tag: v3.11
      openshift_prometheus_node_exporter_tag: v3.11
      openshift_prometheus_operator_image: ose-prometheus-operator
      openshift_prometheus_operator_namespace: registry.access.redhat.com/openshift3
      openshift_prometheus_operator_tag: v3.11
      openshift_prometheus_tag: v3.11
      openshift_tag: v3.11

二、安装 director

1. 配置director

[stack@director ~]$ cp \
> /usr/share/python-tripleoclient/undercloud.conf.sample \
> ~/undercloud.conf

2. 安装delta依赖包

[stack@director ~]$ sudo yum install deltarpm.x86_64
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package deltarpm.x86_64 0:3.6-3.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================
 Package                      Arch                       Version                          Repository                              Size
=======================================================================================================================================
Installing:
 deltarpm                     x86_64                     3.6-3.el7                        rhel-7-server-rpms                      82 k

Transaction Summary
=======================================================================================================================================
Install  1 Package

Total download size: 82 k
Installed size: 209 k
Is this ok [y/d/N]: y
Downloading packages:
deltarpm-3.6-3.el7.x86_64.rpm                                                                                   |  82 kB  00:00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : deltarpm-3.6-3.el7.x86_64                                                                                           1/1
  Verifying  : deltarpm-3.6-3.el7.x86_64                                                                                           1/1

Installed:
  deltarpm.x86_64 0:3.6-3.el7

Complete!

3. 安装 director

[stack@director ~]$ openstack undercloud install
...
################################################

Deployment successfull!

################################################
...
[stack@director ~]$ sudo docker ps
CONTAINER ID        IMAGE                                                                                  COMMAND                                                                                                                                      CREATED             STATUS                  PORTS               NAMES
547cce3aa8de        registry.access.redhat.com/rhosp14/openstack-neutron-dhcp-agent:14.0-116               "ip netns e                                                                                                                    xec qdh..."   12 hours ago        Up 12 hours                                 neutron-dnsmasq-qdhcp-3a6a6a02-877d-4686                                                                                                                    -b54f-9c02a4aa0747
b12307bf2092        registry.access.redhat.com/rhosp14/openstack-nova-compute-ironic:14.0-130.1574776846   "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       nova_compute
317e117089ed        registry.access.redhat.com/rhosp14/openstack-ironic-inspector:14.0-123                 "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       ironic_inspector_dnsmasq
008840c7a1af        registry.access.redhat.com/rhosp14/openstack-ironic-inspector:14.0-123                 "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       ironic_inspector
8eef59edcc01        registry.access.redhat.com/rhosp14/openstack-ironic-pxe:14.0-118                       "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours                                 ironic_pxe_http
0a15385257e4        registry.access.redhat.com/rhosp14/openstack-ironic-pxe:14.0-118                       "/bin/bash                                                                                                                     -c 'BIN..."   12 hours ago        Up 12 hours (healthy)                       ironic_pxe_tftp
de1c5faa9929        registry.access.redhat.com/rhosp14/openstack-ironic-conductor:14.0-121                 "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       ironic_conductor
01bbc3ad151c        registry.access.redhat.com/rhosp14/openstack-ironic-neutron-agent:14.0-88              "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours                                 ironic_neutron_agent
6bde257a8f20        registry.access.redhat.com/rhosp14/openstack-mistral-api:14.0-123                      "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       mistral_api
b6bfddf37cf3        registry.access.redhat.com/rhosp14/openstack-neutron-openvswitch-agent:14.0-120        "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       neutron_ovs_agent
573db3585610        registry.access.redhat.com/rhosp14/openstack-neutron-l3-agent:14.0-116                 "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       neutron_l3_agent
940b053e7e81        registry.access.redhat.com/rhosp14/openstack-neutron-dhcp-agent:14.0-116               "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       neutron_dhcp
be5d1fc7f656        registry.access.redhat.com/rhosp14/openstack-ironic-api:14.0-117                       "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       ironic_api
cee51e6b62e7        registry.access.redhat.com/rhosp14/openstack-nova-api:14.0-125                         "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       nova_metadata
ef62fffccbd5        registry.access.redhat.com/rhosp14/openstack-nova-api:14.0-125                         "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       nova_api
620b119eb13e        registry.access.redhat.com/rhosp14/openstack-glance-api:14.0-126                       "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       glance_api
a4bb6da31475        registry.access.redhat.com/rhosp14/openstack-swift-proxy-server:14.0-124               "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       swift_proxy
2454a2796d37        registry.access.redhat.com/rhosp14/openstack-nova-placement-api:14.0-122               "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       nova_placement
fd896f0d76ad        registry.access.redhat.com/rhosp14/openstack-cron:14.0-159                             "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours                                 logrotate_crond
6ebd8839fd92        registry.access.redhat.com/rhosp14/openstack-tripleo-ui:14.0-102                       "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours                                 tripleo_ui
d3625102ab07        registry.access.redhat.com/rhosp14/openstack-heat-api-cfn:14.0-115                     "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       heat_api_cfn
d4e20bb2846a        registry.access.redhat.com/rhosp14/openstack-mistral-engine:14.0-122                   "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       mistral_engine
fe6b4cd193fd        registry.access.redhat.com/rhosp14/openstack-zaqar:14.0-128                            "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours                                 zaqar
8b2c627ef054        registry.access.redhat.com/rhosp14/openstack-swift-container:14.0-124                  "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       swift_container_server
de7cc05f3d47        registry.access.redhat.com/rhosp14/openstack-swift-object:14.0-123                     "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours                                 swift_object_updater
d890067c47dd        registry.access.redhat.com/rhosp14/openstack-neutron-server:14.0-118                   "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       neutron_api
b2a05145c5c5        registry.access.redhat.com/rhosp14/openstack-swift-account:14.0-124                    "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       swift_account_server
0b4e523ec791        registry.access.redhat.com/rhosp14/openstack-nova-conductor:14.0-126                   "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       nova_conductor
f22162dceace        registry.access.redhat.com/rhosp14/openstack-heat-api:14.0-117                         "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours                                 heat_api_cron
b69f4150741d        registry.access.redhat.com/rhosp14/openstack-heat-engine:14.0-117                      "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       heat_engine
9208998212b0        registry.access.redhat.com/rhosp14/openstack-swift-object:14.0-123                     "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours                                 swift_rsync
390d026ae2fb        registry.access.redhat.com/rhosp14/openstack-swift-proxy-server:14.0-124               "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours                                 swift_object_expirer
81361d3d1156        registry.access.redhat.com/rhosp14/openstack-swift-account:14.0-124                    "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours                                 swift_account_reaper
27fe21d7b3fe        registry.access.redhat.com/rhosp14/openstack-mistral-event-engine:14.0-125             "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       mistral_event_engine
b484e6e1c6f0        registry.access.redhat.com/rhosp14/openstack-nova-api:14.0-125                         "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours                                 nova_api_cron
a3186519a35a        registry.access.redhat.com/rhosp14/openstack-zaqar:14.0-128                            "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours                                 zaqar_websocket
b4518f6dedc7        registry.access.redhat.com/rhosp14/openstack-heat-api:14.0-117                         "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       heat_api
0d59bf1a8f84        registry.access.redhat.com/rhosp14/openstack-swift-object:14.0-123                     "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       swift_object_server
8b608cdd8c27        registry.access.redhat.com/rhosp14/openstack-nova-scheduler:14.0-125                   "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       nova_scheduler
757c5f08a09b        registry.access.redhat.com/rhosp14/openstack-mistral-executor:14.0-132                 "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       mistral_executor
5a430ea3f3e6        registry.access.redhat.com/rhosp14/openstack-swift-container:14.0-124                  "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours                                 swift_container_updater
b00ca70d517b        registry.access.redhat.com/rhosp14/openstack-keystone:14.0-119                         "/bin/bash                                                                                                                     -c '/us..."   12 hours ago        Up 12 hours                                 keystone_cron
78ae1c126c51        registry.access.redhat.com/rhosp14/openstack-keystone:14.0-119                         "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       keystone
ccce53d5d030        registry.access.redhat.com/rhosp14/openstack-iscsid:14.0-157                           "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       iscsid
fe6abad85fda        registry.access.redhat.com/rhosp14/openstack-mariadb:14.0-158                          "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       mysql
fe151a09eeb1        registry.access.redhat.com/rhosp14/openstack-rabbitmq:14.0-156                         "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours (healthy)                       rabbitmq
4250a2bd03d4        registry.access.redhat.com/rhosp14/openstack-haproxy:14.0-158                          "kolla_star                                                                                                                    t"            12 hours ago        Up 12 hours                                 haproxy
4c9bffa14c4a        registry.access.redhat.com/rhosp14/openstack-memcached:14.0-156                        "/bin/bash                                                                                                                     -c 'sou..."   12 hours ago        Up 12 hours (healthy)                       memcached
84ea7b999989        registry.access.redhat.com/rhosp14/openstack-keepalived:14.0-129                       "/usr/local                                                                                                                    /bin/ko..."   12 hours ago        Up 12 hours                                 keepalived

[stack@director ~]$ exec su -l stack
[stack@director ~]$ source ~/stackrc
(undercloud) [stack@director ~]$

3. 为overcloud节点获取镜像

4.内省信息

(undercloud) [stack@director ~]$ openstack overcloud profiles list
+--------------------------------------+----------------+-----------------+-----------------+-------------------+
| Node UUID                            | Node Name      | Provision State | Current Profile | Possible Profiles |
+--------------------------------------+----------------+-----------------+-----------------+-------------------+
| d21bdfe9-71ec-4f4b-a3d7-db91f24921e0 | controller01   | available       | control         |                   |
| 76a5e69a-7da3-4ff0-af5b-ec54c2326854 | controller02   | available       | control         |                   |
| 1b712c90-7419-4970-a3d8-f0bc7f50d2fc | controller03   | available       | control         |                   |
| 31b86d2e-37ca-40f8-b3f9-7b8d72299d44 | compute01      | available       | compute         |                   |
| 28866466-31a0-4327-aadb-70b45a623b8c | ceph-storage01 | available       | ceph-storage    |                   |
+--------------------------------------+----------------+-----------------+-----------------+-------------------+
(undercloud) [stack@director ~]$ openstack baremetal introspection data save d21bdfe9-71ec-4f4b-a3d7-db91f24921e0 | jq ".inventory.disks"
[
  {
    "size": 500107862016,
    "serial": "S3Z3NB0M650131M",
    "wwn": "0x5002538e496457f3",
    "rotational": false,
    "vendor": "ATA",
    "name": "/dev/sda",
    "wwn_vendor_extension": null,
    "hctl": "6:0:0:0",
    "wwn_with_extension": "0x5002538e496457f3",
    "by_path": "/dev/disk/by-path/pci-0000:00:17.0-ata-1.0",
    "model": "Samsung SSD 860"
  }
]
(undercloud) [stack@director ~]$ openstack baremetal node set --property root_device='{"serial": "S3Z3NB0M650131M"}' d21bdfe9-71ec-4f4b-a3d7-db91f24921e0
(undercloud) [stack@director ~]$ openstack baremetal introspection data save 76a5e69a-7da3-4ff0-af5b-ec54c2326854 | jq ".inventory.disks"
[
  {
    "size": 500107862016,
    "serial": "S4CPNF0M758523N",
    "wwn": "0x5002538e497a56d3",
    "rotational": false,
    "vendor": "ATA",
    "name": "/dev/sda",
    "wwn_vendor_extension": null,
    "hctl": "6:0:0:0",
    "wwn_with_extension": "0x5002538e497a56d3",
    "by_path": "/dev/disk/by-path/pci-0000:00:17.0-ata-1.0",
    "model": "Samsung SSD 860"
  }
]
(undercloud) [stack@director ~]$ openstack baremetal node set --property root_device='{"serial": "S4CPNF0M758523N"}' 76a5e69a-7da3-4ff0-af5b-ec54c2326854
(undercloud) [stack@director ~]$ openstack baremetal introspection data save 1b712c90-7419-4970-a3d8-f0bc7f50d2fc | jq ".inventory.disks"
[
  {
    "size": 500107862016,
    "serial": "S3Z3NB0M650110E",
    "wwn": "0x5002538e496457de",
    "rotational": false,
    "vendor": "ATA",
    "name": "/dev/sda",
    "wwn_vendor_extension": null,
    "hctl": "4:0:0:0",
    "wwn_with_extension": "0x5002538e496457de",
    "by_path": "/dev/disk/by-path/pci-0000:00:17.0-ata-1.0",
    "model": "Samsung SSD 860"
  }
]
(undercloud) [stack@director ~]$ openstack baremetal node set --property root_device='{"serial": "S3Z3NB0M650110E"}' 1b712c90-7419-4970-a3d8-f0bc7f50d2fc
(undercloud) [stack@director ~]$ openstack baremetal introspection data save 31b86d2e-37ca-40f8-b3f9-7b8d72299d44 | jq ".inventory.disks"
[
  {
    "size": 500107862016,
    "serial": "S4CPNF0M758521A",
    "wwn": "0x5002538e497a56d1",
    "rotational": false,
    "vendor": "ATA",
    "name": "/dev/sda",
    "wwn_vendor_extension": null,
    "hctl": "4:0:0:0",
    "wwn_with_extension": "0x5002538e497a56d1",
    "by_path": "/dev/disk/by-path/pci-0000:00:17.0-ata-1.0",
    "model": "Samsung SSD 860"
  }
]
(undercloud) [stack@director ~]$ openstack baremetal node set --property root_device='{"serial": "S4CPNF0M758521A"}' 31b86d2e-37ca-40f8-b3f9-7b8d72299d44
(undercloud) [stack@director ~]$ openstack baremetal introspection data save 28866466-31a0-4327-aadb-70b45a623b8c | jq ".inventory.disks"
[
  {
    "size": 4000787030016,
    "serial": "WD-WCC7K5RTPT77",
    "wwn": "0x50014ee2bbe50580",
    "rotational": true,
    "vendor": "ATA",
    "name": "/dev/sda",
    "wwn_vendor_extension": null,
    "hctl": "0:0:0:0",
    "wwn_with_extension": "0x50014ee2bbe50580",
    "by_path": "/dev/disk/by-path/pci-0000:00:11.5-ata-1.0",
    "model": "WDC WD40PURX-64N"
  },
  {
    "size": 500107862016,
    "serial": "S4CPNF0M758536N",
    "wwn": "0x5002538e497a56f4",
    "rotational": false,
    "vendor": "ATA",
    "name": "/dev/sdb",
    "wwn_vendor_extension": null,
    "hctl": "1:0:0:0",
    "wwn_with_extension": "0x5002538e497a56f4",
    "by_path": "/dev/disk/by-path/pci-0000:00:11.5-ata-2.0",
    "model": "Samsung SSD 860"
  },
  {
    "size": 4000787030016,
    "serial": "WD-WCC7K2PFFAFK",
    "wwn": "0x50014ee2bbe5030b",
    "rotational": true,
    "vendor": "ATA",
    "name": "/dev/sdc",
    "wwn_vendor_extension": null,
    "hctl": "2:0:0:0",
    "wwn_with_extension": "0x50014ee2bbe5030b",
    "by_path": "/dev/disk/by-path/pci-0000:00:11.5-ata-3.0",
    "model": "WDC WD40PURX-64N"
  },
  {
    "size": 500107862016,
    "serial": "S4CPNF0M758506X",
    "wwn": "0x5002538e497a56a4",
    "rotational": false,
    "vendor": "ATA",
    "name": "/dev/sdd",
    "wwn_vendor_extension": null,
    "hctl": "3:0:0:0",
    "wwn_with_extension": "0x5002538e497a56a4",
    "by_path": "/dev/disk/by-path/pci-0000:00:11.5-ata-4.0",
    "model": "Samsung SSD 860"
  },
  {
    "size": 4000787030016,
    "serial": "WD-WCC7K5NZSFP4",
    "wwn": "0x50014ee2bbe50622",
    "rotational": true,
    "vendor": "ATA",
    "name": "/dev/sde",
    "wwn_vendor_extension": null,
    "hctl": "12:0:0:0",
    "wwn_with_extension": "0x50014ee2bbe50622",
    "by_path": "/dev/disk/by-path/pci-0000:02:00.0-ata-1.0",
    "model": "WDC WD40PURX-64N"
  },
  {
    "size": 500107862016,
    "serial": "S4CPNF0M758513M",
    "wwn": "0x5002538e497a56b5",
    "rotational": false,
    "vendor": "ATA",
    "name": "/dev/sdf",
    "wwn_vendor_extension": null,
    "hctl": "13:0:0:0",
    "wwn_with_extension": "0x5002538e497a56b5",
    "by_path": "/dev/disk/by-path/pci-0000:02:00.0-ata-2.0",
    "model": "Samsung SSD 860"
  },
  {
    "size": 4000787030016,
    "serial": "WD-WCC7K2PFFF42",
    "wwn": "0x50014ee2668f3f76",
    "rotational": true,
    "vendor": "ATA",
    "name": "/dev/sdg",
    "wwn_vendor_extension": null,
    "hctl": "14:0:0:0",
    "wwn_with_extension": "0x50014ee2668f3f76",
    "by_path": "/dev/disk/by-path/pci-0000:02:00.0-ata-3.0",
    "model": "WDC WD40PURX-64N"
  }
]
(undercloud) [stack@director ~]$ openstack baremetal node set --property root_device='{"serial": "S4CPNF0M758536N"}' 28866466-31a0-4327-aadb-70b45a623b8c

三、

© 著作权归作者所有

R
粉丝 2
博文 39
码字总数 47834
作品 0
广州
私信 提问
加载中

评论(0)

云计算相关资料/博客/网上收集的关于OpenStack的一些资源

OpenStack Nova code:https://bugs.launchpad.net/nova OpenStack Blog:http://planet.openstack.org/ OpenStack 官方文档:http://docs.openstack.org/cactus/openstack-compute/admin/co......

DongZhang
2012/02/02
374
0
在openstack上使用Bosh部署cloudfoundry集群(上)

本文所要讨论的是如何在openstack上使用Bosh部署cloudfoundry集群,并分为上下两个部分。在第一部分中主要涉及stemcell和bosh自部署的内容,第二部分是有关cloudfoundry的集群搭建配置和最终...

长平狐
2013/11/25
2.4K
0
开放基础架构新浪潮:互联网巨头背后的OpenStack

2018年5月21-24日,第十七届OpenStack峰会在温哥华盛大开幕,今年峰会的主题为“Open Infrastructure”。凸显出OpenStack基金会积极拥抱变化,主动求变的态度更加清晰,也是OpenStack基金会开...

云科技时代
2018/05/25
0
0
OpenStack centos版安装(一)

OpenStack是一个美国国家航空航天局和Rackspace合作研发的,以Apache许可证授权,并且是一个自由软件和开放源代码项目。 OpenStack是一个云平台管理的项目,这个项目由几个主要的组件组合起来...

蓝狐乐队
2014/04/18
255
0
Mirantis OpenStack fuel 物理机部署

理机上使用fuel 5.1部署openstack HA 存储使用ceph 2014年12月5日 15:58 新浪博客 How to Install Mirantis Fuel 5.1 Openstack wihceph 作者:@法不荣情 本人刚开始接触openstack,对一切还...

剑气满天
2015/08/18
4.8K
3

没有更多内容

加载失败,请刷新页面

加载更多

「网易官方」极客战记(codecombat)攻略-地牢-蜿蜒峡谷twisted-canyon

挑战:使用迄今为止学到的所有编程技能收集最多的黄金! 简介: 嘿,又是Pender,这意味着又是一个特殊挑战关卡! 通过创造性地使用迄今为止学到的所有编程技能,来解决这个关卡。 有多种方式...

极客战记
29分钟前
62
0
Java 条件运算符

https://java-er.com/blog/java-condition-operation/ Java 提供了一个特别的三元运算符(也叫三目运算符)经常用于取代某个类型的 if-then-else 语句 变量 x = (条件) ? value if true : v...

月小升
37分钟前
52
0
Kali Linux发布2020.1a版本

Kali Linux发布2020.1a版本 Kali Linux发布2020.1a版本。现在该版本暂时只能从cdimage.kali.org下载。该版本修复了2010.1不联网安装时,没有桌面的bug。2010.1默认的桌面为Xfce。该桌面对应的...

大学霸
54分钟前
46
0
Elasticsearch+Fluentd+Kafka搭建日志系统

前言 由于logstash内存占用较大,灵活性相对没那么好,ELK正在被EFK逐步替代.其中本文所讲的EFK是Elasticsearch+Fluentd+Kfka,实际上K应该是Kibana用于日志的展示,这一块不做演示,本文只讲述数...

四颗咖啡豆
今天
87
0
结果.

app/admin/options.py

MtrS
今天
42
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部