Openstack on CentOS
1>
$ sudo yum install -y centos-release-openstack-newton
$ sudo yum update -y
$ sudo yum install -y openstack-packstack
$ sudo packstack --allinone
2> SSH Failure:
The installation log file is available at: /var/tmp/packstack/20170227-044407-0KWx7J/openstack-setup.log
Packstack changed given value to required value /root/.ssh/id_rsa.pub
Installing:
Clean Up [ DONE ]
Discovering ip protocol version [ DONE ]
Setting up ssh keys [ DONE ]
Preparing servers [ ERROR ]
ERROR : Failed to run remote script, stdout:
stderr: Warning: Permanently added '10.128.0.2' (ECDSA) to the list of known hosts.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
Please check log file /var/tmp/packstack/20170227-044407-0KWx7J/openstack-setup.log for more information
Additional information:
* A new answerfile was created in: /root/packstack-answers-20170227-044408.txt
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might
be problem for some OpenStack components.
[surinder_kumar_432@instance-2 ~]$ packstack --allinone
Welcome to the Packstack setup utility
The installation log file is available at: /var/tmp/packstack/20170227-044517-2PtJZS/openstack-setup.log
Packstack changed given value to required value /home/surinder_kumar_432/.ssh/id_rsa.pub
Installing:
Clean Up [ DONE ]
Discovering ip protocol version [ DONE ]
Setting up ssh keys [ ERROR ]
ERROR : Failed to run remote script, stdout:
stderr: Warning: Permanently added '10.128.0.2' (ECDSA) to the list of known hosts.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
Please check log file /var/tmp/packstack/20170227-044517-2PtJZS/openstack-setup.log for more information
Additional information:
* A new answerfile was created in: /home/surinder_kumar_432/packstack-answers-20170227-044517.txt
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might
be problem for some OpenStack components.
[surinder_kumar_432@instance-2 ~]$
3> Fix:
# systemctl stop postfix firewalld NetworkManager
# systemctl disable postfix firewalld NetworkManager
# systemctl mask NetworkManager
# yum remove postfix NetworkManager NetworkManager-libnm
# setenforce 0
# getenforce
# vi /etc/selinux/config
disabled
# hostnamectl set-hostname cloud.centos.lan
# grep PermitRoot /etc/ssh/sshd_config
PermitRootLogin yes
# the setting of "PermitRootLogin without-password".
[root@instance-2 surinder_kumar_432]# systemctl restart sshd
[surinder_kumar_432@instance-2 ~]$ sudo su
[root@instance-2 surinder_kumar_432]# id
uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[root@instance-2 surinder_kumar_432]# setenforce 0
[root@instance-2 surinder_kumar_432]# vi /etc/selinux/config
[root@instance-2 surinder_kumar_432]# systemctl stop postfix firewalld NetworkManager
[root@instance-2 surinder_kumar_432]# systemctl disable postfix firewalld NetworkManager
Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
Removed symlink /etc/systemd/system/multi-user.target.wants/postfix.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
[root@instance-2 surinder_kumar_432]# systemctl mask NetworkManager
Created symlink from /etc/systemd/system/NetworkManager.service to /dev/null.
[root@instance-2 surinder_kumar_432]# yum remove postfix NetworkManager NetworkManager-libnm
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package NetworkManager.x86_64 1:1.4.0-14.el7_3 will be erased
--> Processing Dependency: NetworkManager = 1:1.4.0-14.el7_3 for package: 1:NetworkManager-tui-1.4.0-14.el7_3.x86_64
--> Processing Dependency: NetworkManager(x86-64) = 1:1.4.0-14.el7_3 for package: 1:NetworkManager-bluetooth-1.4.0-14.el7_3.x86_64
--> Processing Dependency: NetworkManager(x86-64) = 1:1.4.0-14.el7_3 for package: 1:NetworkManager-adsl-1.4.0-14.el7_3.x86_64
--> Processing Dependency: NetworkManager(x86-64) = 1:1.4.0-14.el7_3 for package: 1:NetworkManager-team-1.4.0-14.el7_3.x86_64
--> Processing Dependency: NetworkManager(x86-64) = 1:1.4.0-14.el7_3 for package: 1:NetworkManager-wifi-1.4.0-14.el7_3.x86_64
--> Processing Dependency: NetworkManager(x86-64) = 1:1.4.0-14.el7_3 for package: 1:NetworkManager-wwan-1.4.0-14.el7_3.x86_64
---> Package NetworkManager-libnm.x86_64 1:1.4.0-14.el7_3 will be erased
---> Package postfix.x86_64 2:2.10.1-6.el7 will be erased
--> Running transaction check
---> Package NetworkManager-adsl.x86_64 1:1.4.0-14.el7_3 will be erased
---> Package NetworkManager-bluetooth.x86_64 1:1.4.0-14.el7_3 will be erased
---> Package NetworkManager-team.x86_64 1:1.4.0-14.el7_3 will be erased
---> Package NetworkManager-tui.x86_64 1:1.4.0-14.el7_3 will be erased
---> Package NetworkManager-wifi.x86_64 1:1.4.0-14.el7_3 will be erased
---> Package NetworkManager-wwan.x86_64 1:1.4.0-14.el7_3 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================
Package Arch Version Repository Size
================================================================================================================
Removing:
NetworkManager x86_64 1:1.4.0-14.el7_3 @updates 10 M
NetworkManager-libnm x86_64 1:1.4.0-14.el7_3 @updates 1.1 M
postfix x86_64 2:2.10.1-6.el7 @anaconda 12 M
Removing for dependencies:
NetworkManager-adsl x86_64 1:1.4.0-14.el7_3 @updates 49 k
NetworkManager-bluetooth x86_64 1:1.4.0-14.el7_3 @updates 103 k
NetworkManager-team x86_64 1:1.4.0-14.el7_3 @updates 53 k
NetworkManager-tui x86_64 1:1.4.0-14.el7_3 @updates 266 k
NetworkManager-wifi x86_64 1:1.4.0-14.el7_3 @updates 144 k
NetworkManager-wwan x86_64 1:1.4.0-14.el7_3 @updates 123 k
Transaction Summary
================================================================================================================
Remove 3 Packages (+6 Dependent packages)
Installed size: 24 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : 1:NetworkManager-tui-1.4.0-14.el7_3.x86_64 1/9
Erasing : 1:NetworkManager-bluetooth-1.4.0-14.el7_3.x86_64 2/9
Erasing : 1:NetworkManager-wwan-1.4.0-14.el7_3.x86_64 3/9
Erasing : 1:NetworkManager-wifi-1.4.0-14.el7_3.x86_64 4/9
Erasing : 1:NetworkManager-adsl-1.4.0-14.el7_3.x86_64 5/9
Erasing : 1:NetworkManager-team-1.4.0-14.el7_3.x86_64 6/9
Erasing : 1:NetworkManager-1.4.0-14.el7_3.x86_64 7/9
Erasing : 1:NetworkManager-libnm-1.4.0-14.el7_3.x86_64 8/9
Erasing : 2:postfix-2.10.1-6.el7.x86_64 9/9
Verifying : 1:NetworkManager-wwan-1.4.0-14.el7_3.x86_64 1/9
Verifying : 1:NetworkManager-bluetooth-1.4.0-14.el7_3.x86_64 2/9
Verifying : 1:NetworkManager-1.4.0-14.el7_3.x86_64 3/9
Verifying : 1:NetworkManager-team-1.4.0-14.el7_3.x86_64 4/9
Verifying : 1:NetworkManager-adsl-1.4.0-14.el7_3.x86_64 5/9
Verifying : 1:NetworkManager-wifi-1.4.0-14.el7_3.x86_64 6/9
Verifying : 2:postfix-2.10.1-6.el7.x86_64 7/9
Verifying : 1:NetworkManager-tui-1.4.0-14.el7_3.x86_64 8/9
Verifying : 1:NetworkManager-libnm-1.4.0-14.el7_3.x86_64 9/9
Removed:
NetworkManager.x86_64 1:1.4.0-14.el7_3 NetworkManager-libnm.x86_64 1:1.4.0-14.el7_3
postfix.x86_64 2:2.10.1-6.el7
Dependency Removed:
NetworkManager-adsl.x86_64 1:1.4.0-14.el7_3 NetworkManager-bluetooth.x86_64 1:1.4.0-14.el7_3
NetworkManager-team.x86_64 1:1.4.0-14.el7_3 NetworkManager-tui.x86_64 1:1.4.0-14.el7_3
NetworkManager-wifi.x86_64 1:1.4.0-14.el7_3 NetworkManager-wwan.x86_64 1:1.4.0-14.el7_3
Complete!
4>
[root@instance-2 surinder_kumar_432]# ss -tulpn
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port
udp UNCONN 0 0 *:49355 *:*
users:(("avahi-daemon",pid=369,fd=13))
udp UNCONN 0 0 *:5353 *:*
users:(("avahi-daemon",pid=369,fd=12))
udp UNCONN 0 0 *:17931 *:*
users:(("dhclient",pid=538,fd=20))
udp UNCONN 0 0 *:68 *:*
users:(("dhclient",pid=538,fd=6))
udp UNCONN 0 0 10.128.0.2:123 *:*
users:(("ntpd",pid=597,fd=19))
udp UNCONN 0 0 127.0.0.1:123 *:*
users:(("ntpd",pid=597,fd=18))
udp UNCONN 0 0 *:123 *:*
users:(("ntpd",pid=597,fd=16))
udp UNCONN 0 0 :::10080 :::*
users:(("dhclient",pid=538,fd=21))
udp UNCONN 0 0 ::1:123 :::*
users:(("ntpd",pid=597,fd=21))
udp UNCONN 0 0 :::123 :::*
users:(("ntpd",pid=597,fd=17))
tcp LISTEN 0 128 *:22 *:*
users:(("sshd",pid=889,fd=3))
tcp LISTEN 0 128 :::22 :::*
users:(("sshd",pid=889,fd=4))
[root@instance-2 surinder_kumar_432]# uname -a
Linux instance-2 3.10.0-514.6.1.el7.x86_64 #1 SMP Wed Jan 18 13:06:36 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@instance-2 surinder_kumar_432]# hostnamectl set-hostname cloud.centos.lan
[root@instance-2 surinder_kumar_432]#
[root@instance-2 surinder_kumar_432]#
5> Memory error :
=============
1 vCPU and 3.75GB of RAM
Error: Could not set 'present' on ensure: Cannot allocate memory - fork(2)
Installing:
Clean Up [ DONE ]
Discovering ip protocol version [ DONE ]
Setting up ssh keys [ DONE ]
Preparing servers [ DONE ]
Pre installing Puppet and discovering hosts' details [ DONE ]
Preparing pre-install entries [ DONE ]
Setting up CACERT [ DONE ]
Preparing AMQP entries [ DONE ]
Preparing MariaDB entries [ DONE ]
Fixing Keystone LDAP config parameters to be undef if empty[ DONE ]
Preparing Keystone entries [ DONE ]
Preparing Glance entries [ DONE ]
Checking if the Cinder server has a cinder-volumes vg[ DONE ]
Preparing Cinder entries [ DONE ]
Preparing Nova API entries [ DONE ]
Creating ssh keys for Nova migration [ DONE ]
Gathering ssh host keys for Nova migration [ DONE ]
Preparing Nova Compute entries [ DONE ]
Preparing Nova Scheduler entries [ DONE ]
Preparing Nova VNC Proxy entries [ DONE ]
Preparing OpenStack Network-related Nova entries [ DONE ]
Preparing Nova Common entries [ DONE ]
Preparing Neutron LBaaS Agent entries [ DONE ]
Preparing Neutron API entries [ DONE ]
Preparing Neutron L3 entries [ DONE ]
Preparing Neutron L2 Agent entries [ DONE ]
Preparing Neutron DHCP Agent entries [ DONE ]
Preparing Neutron Metering Agent entries [ DONE ]
Checking if NetworkManager is enabled and running [ DONE ]
Preparing OpenStack Client entries [ DONE ]
Preparing Horizon entries [ DONE ]
Preparing Swift builder entries [ DONE ]
Preparing Swift proxy entries [ DONE ]
Preparing Swift storage entries [ DONE ]
Preparing Gnocchi entries [ DONE ]
Preparing MongoDB entries [ DONE ]
Preparing Redis entries [ DONE ]
Preparing Ceilometer entries [ DONE ]
Preparing Aodh entries [ DONE ]
Preparing Nagios server entries [ DONE ]
Preparing Nagios host entries [ DONE ]
Preparing Puppet manifests [ DONE ]
Copying Puppet modules and manifests [ DONE ]
Applying 10.128.0.2_controller.pp
10.128.0.2_controller.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]
ERROR : Error appeared during Puppet run: 10.128.0.2_controller.pp
Error: Could not set 'present' on ensure: Cannot allocate memory - fork(2)
You will find full trace in log /var/tmp/packstack/20170227-045650-grKA0n/manifests/10.128.0.2_controller.pp.log
Please check log file /var/tmp/packstack/20170227-045650-grKA0n/openstack-setup.log for more information
Additional information:
* A new answerfile was created in: /root/packstack-answers-20170227-045651.txt
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
* File /root/keystonerc_admin has been created on OpenStack client host 10.128.0.2. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://10.128.0.2/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
* To use Nagios, browse to http://10.128.0.2/nagios username: nagiosadmin, password: 4be6e28e123046db
6> Next:
Instance with memory of 2 vCPU and 6.5 GB memory
[root@instance-1 surinder_kumar_432]# packstack --allinone
Welcome to the Packstack setup utility
The installation log file is available at: /var/tmp/packstack/20170227-052947-027Z4T/openstack-setup.log
Packstack changed given value to required value /root/.ssh/id_rsa.pub
Installing:
Clean Up [ DONE ]
Discovering ip protocol version [ DONE ]
Setting up ssh keys [ DONE ]
Preparing servers [ DONE ]
Pre installing Puppet and discovering hosts' details [ DONE ]
Preparing pre-install entries [ DONE ]
Setting up CACERT [ DONE ]
Preparing AMQP entries [ DONE ]
Preparing MariaDB entries [ DONE ]
Fixing Keystone LDAP config parameters to be undef if empty[ DONE ]
Preparing Keystone entries [ DONE ]
Preparing Glance entries [ DONE ]
Checking if the Cinder server has a cinder-volumes vg[ DONE ]
Preparing Cinder entries [ DONE ]
Preparing Nova API entries [ DONE ]
Creating ssh keys for Nova migration [ DONE ]
Gathering ssh host keys for Nova migration [ DONE ]
Preparing Nova Compute entries [ DONE ]
Preparing Nova Scheduler entries [ DONE ]
Preparing Nova VNC Proxy entries [ DONE ]
Preparing OpenStack Network-related Nova entries [ DONE ]
Preparing Nova Common entries [ DONE ]
Preparing Neutron LBaaS Agent entries [ DONE ]
Preparing Neutron API entries [ DONE ]
Preparing Neutron L3 entries [ DONE ]
Preparing Neutron L2 Agent entries [ DONE ]
Preparing Neutron DHCP Agent entries [ DONE ]
Preparing Neutron Metering Agent entries [ DONE ]
Checking if NetworkManager is enabled and running [ DONE ]
Preparing OpenStack Client entries [ DONE ]
Preparing Horizon entries [ DONE ]
Preparing Swift builder entries [ DONE ]
Preparing Swift proxy entries [ DONE ]
Preparing Swift storage entries [ DONE ]
Preparing Gnocchi entries [ DONE ]
Preparing MongoDB entries [ DONE ]
Preparing Redis entries [ DONE ]
Preparing Ceilometer entries [ DONE ]
Preparing Aodh entries [ DONE ]
Preparing Nagios server entries [ DONE ]
Preparing Nagios host entries [ DONE ]
Preparing Puppet manifests [ DONE ]
Copying Puppet modules and manifests [ DONE ]
Applying 10.128.0.2_controller.pp
10.128.0.2_controller.pp: [ DONE ]
Applying 10.128.0.2_network.pp
10.128.0.2_network.pp: [ DONE ]
Applying 10.128.0.2_compute.pp
10.128.0.2_compute.pp: [ DONE ]
Applying Puppet manifests [ DONE ]
Finalizing [ DONE ]
**** Installation completed successfully ******
Additional information:
* A new answerfile was created in: /root/packstack-answers-20170227-052948.txt
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
* File /root/keystonerc_admin has been created on OpenStack client host 10.128.0.2. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://10.128.0.2/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
* To use Nagios, browse to http://10.128.0.2/nagios username: nagiosadmin, password: 7499218eb25a4808
* Because of the kernel update the host 10.128.0.2 requires reboot.
* The installation log file is available at: /var/tmp/packstack/20170227-052947-027Z4T/openstack-setup.log
* The generated manifests are available at: /var/tmp/packstack/20170227-052947-027Z4T/manifests
[root@instance-1 surinder_kumar_432]#
1>
$ sudo yum install -y centos-release-openstack-newton
$ sudo yum update -y
$ sudo yum install -y openstack-packstack
$ sudo packstack --allinone
2> SSH Failure:
The installation log file is available at: /var/tmp/packstack/20170227-044407-0KWx7J/openstack-setup.log
Packstack changed given value to required value /root/.ssh/id_rsa.pub
Installing:
Clean Up [ DONE ]
Discovering ip protocol version [ DONE ]
Setting up ssh keys [ DONE ]
Preparing servers [ ERROR ]
ERROR : Failed to run remote script, stdout:
stderr: Warning: Permanently added '10.128.0.2' (ECDSA) to the list of known hosts.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
Please check log file /var/tmp/packstack/20170227-044407-0KWx7J/openstack-setup.log for more information
Additional information:
* A new answerfile was created in: /root/packstack-answers-20170227-044408.txt
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might
be problem for some OpenStack components.
[surinder_kumar_432@instance-2 ~]$ packstack --allinone
Welcome to the Packstack setup utility
The installation log file is available at: /var/tmp/packstack/20170227-044517-2PtJZS/openstack-setup.log
Packstack changed given value to required value /home/surinder_kumar_432/.ssh/id_rsa.pub
Installing:
Clean Up [ DONE ]
Discovering ip protocol version [ DONE ]
Setting up ssh keys [ ERROR ]
ERROR : Failed to run remote script, stdout:
stderr: Warning: Permanently added '10.128.0.2' (ECDSA) to the list of known hosts.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
Please check log file /var/tmp/packstack/20170227-044517-2PtJZS/openstack-setup.log for more information
Additional information:
* A new answerfile was created in: /home/surinder_kumar_432/packstack-answers-20170227-044517.txt
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might
be problem for some OpenStack components.
[surinder_kumar_432@instance-2 ~]$
3> Fix:
# systemctl stop postfix firewalld NetworkManager
# systemctl disable postfix firewalld NetworkManager
# systemctl mask NetworkManager
# yum remove postfix NetworkManager NetworkManager-libnm
# setenforce 0
# getenforce
# vi /etc/selinux/config
disabled
# hostnamectl set-hostname cloud.centos.lan
# grep PermitRoot /etc/ssh/sshd_config
PermitRootLogin yes
# the setting of "PermitRootLogin without-password".
[root@instance-2 surinder_kumar_432]# systemctl restart sshd
[surinder_kumar_432@instance-2 ~]$ sudo su
[root@instance-2 surinder_kumar_432]# id
uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[root@instance-2 surinder_kumar_432]# setenforce 0
[root@instance-2 surinder_kumar_432]# vi /etc/selinux/config
[root@instance-2 surinder_kumar_432]# systemctl stop postfix firewalld NetworkManager
[root@instance-2 surinder_kumar_432]# systemctl disable postfix firewalld NetworkManager
Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
Removed symlink /etc/systemd/system/multi-user.target.wants/postfix.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
[root@instance-2 surinder_kumar_432]# systemctl mask NetworkManager
Created symlink from /etc/systemd/system/NetworkManager.service to /dev/null.
[root@instance-2 surinder_kumar_432]# yum remove postfix NetworkManager NetworkManager-libnm
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package NetworkManager.x86_64 1:1.4.0-14.el7_3 will be erased
--> Processing Dependency: NetworkManager = 1:1.4.0-14.el7_3 for package: 1:NetworkManager-tui-1.4.0-14.el7_3.x86_64
--> Processing Dependency: NetworkManager(x86-64) = 1:1.4.0-14.el7_3 for package: 1:NetworkManager-bluetooth-1.4.0-14.el7_3.x86_64
--> Processing Dependency: NetworkManager(x86-64) = 1:1.4.0-14.el7_3 for package: 1:NetworkManager-adsl-1.4.0-14.el7_3.x86_64
--> Processing Dependency: NetworkManager(x86-64) = 1:1.4.0-14.el7_3 for package: 1:NetworkManager-team-1.4.0-14.el7_3.x86_64
--> Processing Dependency: NetworkManager(x86-64) = 1:1.4.0-14.el7_3 for package: 1:NetworkManager-wifi-1.4.0-14.el7_3.x86_64
--> Processing Dependency: NetworkManager(x86-64) = 1:1.4.0-14.el7_3 for package: 1:NetworkManager-wwan-1.4.0-14.el7_3.x86_64
---> Package NetworkManager-libnm.x86_64 1:1.4.0-14.el7_3 will be erased
---> Package postfix.x86_64 2:2.10.1-6.el7 will be erased
--> Running transaction check
---> Package NetworkManager-adsl.x86_64 1:1.4.0-14.el7_3 will be erased
---> Package NetworkManager-bluetooth.x86_64 1:1.4.0-14.el7_3 will be erased
---> Package NetworkManager-team.x86_64 1:1.4.0-14.el7_3 will be erased
---> Package NetworkManager-tui.x86_64 1:1.4.0-14.el7_3 will be erased
---> Package NetworkManager-wifi.x86_64 1:1.4.0-14.el7_3 will be erased
---> Package NetworkManager-wwan.x86_64 1:1.4.0-14.el7_3 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================
Package Arch Version Repository Size
================================================================================================================
Removing:
NetworkManager x86_64 1:1.4.0-14.el7_3 @updates 10 M
NetworkManager-libnm x86_64 1:1.4.0-14.el7_3 @updates 1.1 M
postfix x86_64 2:2.10.1-6.el7 @anaconda 12 M
Removing for dependencies:
NetworkManager-adsl x86_64 1:1.4.0-14.el7_3 @updates 49 k
NetworkManager-bluetooth x86_64 1:1.4.0-14.el7_3 @updates 103 k
NetworkManager-team x86_64 1:1.4.0-14.el7_3 @updates 53 k
NetworkManager-tui x86_64 1:1.4.0-14.el7_3 @updates 266 k
NetworkManager-wifi x86_64 1:1.4.0-14.el7_3 @updates 144 k
NetworkManager-wwan x86_64 1:1.4.0-14.el7_3 @updates 123 k
Transaction Summary
================================================================================================================
Remove 3 Packages (+6 Dependent packages)
Installed size: 24 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : 1:NetworkManager-tui-1.4.0-14.el7_3.x86_64 1/9
Erasing : 1:NetworkManager-bluetooth-1.4.0-14.el7_3.x86_64 2/9
Erasing : 1:NetworkManager-wwan-1.4.0-14.el7_3.x86_64 3/9
Erasing : 1:NetworkManager-wifi-1.4.0-14.el7_3.x86_64 4/9
Erasing : 1:NetworkManager-adsl-1.4.0-14.el7_3.x86_64 5/9
Erasing : 1:NetworkManager-team-1.4.0-14.el7_3.x86_64 6/9
Erasing : 1:NetworkManager-1.4.0-14.el7_3.x86_64 7/9
Erasing : 1:NetworkManager-libnm-1.4.0-14.el7_3.x86_64 8/9
Erasing : 2:postfix-2.10.1-6.el7.x86_64 9/9
Verifying : 1:NetworkManager-wwan-1.4.0-14.el7_3.x86_64 1/9
Verifying : 1:NetworkManager-bluetooth-1.4.0-14.el7_3.x86_64 2/9
Verifying : 1:NetworkManager-1.4.0-14.el7_3.x86_64 3/9
Verifying : 1:NetworkManager-team-1.4.0-14.el7_3.x86_64 4/9
Verifying : 1:NetworkManager-adsl-1.4.0-14.el7_3.x86_64 5/9
Verifying : 1:NetworkManager-wifi-1.4.0-14.el7_3.x86_64 6/9
Verifying : 2:postfix-2.10.1-6.el7.x86_64 7/9
Verifying : 1:NetworkManager-tui-1.4.0-14.el7_3.x86_64 8/9
Verifying : 1:NetworkManager-libnm-1.4.0-14.el7_3.x86_64 9/9
Removed:
NetworkManager.x86_64 1:1.4.0-14.el7_3 NetworkManager-libnm.x86_64 1:1.4.0-14.el7_3
postfix.x86_64 2:2.10.1-6.el7
Dependency Removed:
NetworkManager-adsl.x86_64 1:1.4.0-14.el7_3 NetworkManager-bluetooth.x86_64 1:1.4.0-14.el7_3
NetworkManager-team.x86_64 1:1.4.0-14.el7_3 NetworkManager-tui.x86_64 1:1.4.0-14.el7_3
NetworkManager-wifi.x86_64 1:1.4.0-14.el7_3 NetworkManager-wwan.x86_64 1:1.4.0-14.el7_3
Complete!
4>
[root@instance-2 surinder_kumar_432]# ss -tulpn
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port
udp UNCONN 0 0 *:49355 *:*
users:(("avahi-daemon",pid=369,fd=13))
udp UNCONN 0 0 *:5353 *:*
users:(("avahi-daemon",pid=369,fd=12))
udp UNCONN 0 0 *:17931 *:*
users:(("dhclient",pid=538,fd=20))
udp UNCONN 0 0 *:68 *:*
users:(("dhclient",pid=538,fd=6))
udp UNCONN 0 0 10.128.0.2:123 *:*
users:(("ntpd",pid=597,fd=19))
udp UNCONN 0 0 127.0.0.1:123 *:*
users:(("ntpd",pid=597,fd=18))
udp UNCONN 0 0 *:123 *:*
users:(("ntpd",pid=597,fd=16))
udp UNCONN 0 0 :::10080 :::*
users:(("dhclient",pid=538,fd=21))
udp UNCONN 0 0 ::1:123 :::*
users:(("ntpd",pid=597,fd=21))
udp UNCONN 0 0 :::123 :::*
users:(("ntpd",pid=597,fd=17))
tcp LISTEN 0 128 *:22 *:*
users:(("sshd",pid=889,fd=3))
tcp LISTEN 0 128 :::22 :::*
users:(("sshd",pid=889,fd=4))
[root@instance-2 surinder_kumar_432]# uname -a
Linux instance-2 3.10.0-514.6.1.el7.x86_64 #1 SMP Wed Jan 18 13:06:36 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@instance-2 surinder_kumar_432]# hostnamectl set-hostname cloud.centos.lan
[root@instance-2 surinder_kumar_432]#
[root@instance-2 surinder_kumar_432]#
5> Memory error :
=============
1 vCPU and 3.75GB of RAM
Error: Could not set 'present' on ensure: Cannot allocate memory - fork(2)
Installing:
Clean Up [ DONE ]
Discovering ip protocol version [ DONE ]
Setting up ssh keys [ DONE ]
Preparing servers [ DONE ]
Pre installing Puppet and discovering hosts' details [ DONE ]
Preparing pre-install entries [ DONE ]
Setting up CACERT [ DONE ]
Preparing AMQP entries [ DONE ]
Preparing MariaDB entries [ DONE ]
Fixing Keystone LDAP config parameters to be undef if empty[ DONE ]
Preparing Keystone entries [ DONE ]
Preparing Glance entries [ DONE ]
Checking if the Cinder server has a cinder-volumes vg[ DONE ]
Preparing Cinder entries [ DONE ]
Preparing Nova API entries [ DONE ]
Creating ssh keys for Nova migration [ DONE ]
Gathering ssh host keys for Nova migration [ DONE ]
Preparing Nova Compute entries [ DONE ]
Preparing Nova Scheduler entries [ DONE ]
Preparing Nova VNC Proxy entries [ DONE ]
Preparing OpenStack Network-related Nova entries [ DONE ]
Preparing Nova Common entries [ DONE ]
Preparing Neutron LBaaS Agent entries [ DONE ]
Preparing Neutron API entries [ DONE ]
Preparing Neutron L3 entries [ DONE ]
Preparing Neutron L2 Agent entries [ DONE ]
Preparing Neutron DHCP Agent entries [ DONE ]
Preparing Neutron Metering Agent entries [ DONE ]
Checking if NetworkManager is enabled and running [ DONE ]
Preparing OpenStack Client entries [ DONE ]
Preparing Horizon entries [ DONE ]
Preparing Swift builder entries [ DONE ]
Preparing Swift proxy entries [ DONE ]
Preparing Swift storage entries [ DONE ]
Preparing Gnocchi entries [ DONE ]
Preparing MongoDB entries [ DONE ]
Preparing Redis entries [ DONE ]
Preparing Ceilometer entries [ DONE ]
Preparing Aodh entries [ DONE ]
Preparing Nagios server entries [ DONE ]
Preparing Nagios host entries [ DONE ]
Preparing Puppet manifests [ DONE ]
Copying Puppet modules and manifests [ DONE ]
Applying 10.128.0.2_controller.pp
10.128.0.2_controller.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]
ERROR : Error appeared during Puppet run: 10.128.0.2_controller.pp
Error: Could not set 'present' on ensure: Cannot allocate memory - fork(2)
You will find full trace in log /var/tmp/packstack/20170227-045650-grKA0n/manifests/10.128.0.2_controller.pp.log
Please check log file /var/tmp/packstack/20170227-045650-grKA0n/openstack-setup.log for more information
Additional information:
* A new answerfile was created in: /root/packstack-answers-20170227-045651.txt
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
* File /root/keystonerc_admin has been created on OpenStack client host 10.128.0.2. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://10.128.0.2/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
* To use Nagios, browse to http://10.128.0.2/nagios username: nagiosadmin, password: 4be6e28e123046db
6> Next:
Instance with memory of 2 vCPU and 6.5 GB memory
[root@instance-1 surinder_kumar_432]# packstack --allinone
Welcome to the Packstack setup utility
The installation log file is available at: /var/tmp/packstack/20170227-052947-027Z4T/openstack-setup.log
Packstack changed given value to required value /root/.ssh/id_rsa.pub
Installing:
Clean Up [ DONE ]
Discovering ip protocol version [ DONE ]
Setting up ssh keys [ DONE ]
Preparing servers [ DONE ]
Pre installing Puppet and discovering hosts' details [ DONE ]
Preparing pre-install entries [ DONE ]
Setting up CACERT [ DONE ]
Preparing AMQP entries [ DONE ]
Preparing MariaDB entries [ DONE ]
Fixing Keystone LDAP config parameters to be undef if empty[ DONE ]
Preparing Keystone entries [ DONE ]
Preparing Glance entries [ DONE ]
Checking if the Cinder server has a cinder-volumes vg[ DONE ]
Preparing Cinder entries [ DONE ]
Preparing Nova API entries [ DONE ]
Creating ssh keys for Nova migration [ DONE ]
Gathering ssh host keys for Nova migration [ DONE ]
Preparing Nova Compute entries [ DONE ]
Preparing Nova Scheduler entries [ DONE ]
Preparing Nova VNC Proxy entries [ DONE ]
Preparing OpenStack Network-related Nova entries [ DONE ]
Preparing Nova Common entries [ DONE ]
Preparing Neutron LBaaS Agent entries [ DONE ]
Preparing Neutron API entries [ DONE ]
Preparing Neutron L3 entries [ DONE ]
Preparing Neutron L2 Agent entries [ DONE ]
Preparing Neutron DHCP Agent entries [ DONE ]
Preparing Neutron Metering Agent entries [ DONE ]
Checking if NetworkManager is enabled and running [ DONE ]
Preparing OpenStack Client entries [ DONE ]
Preparing Horizon entries [ DONE ]
Preparing Swift builder entries [ DONE ]
Preparing Swift proxy entries [ DONE ]
Preparing Swift storage entries [ DONE ]
Preparing Gnocchi entries [ DONE ]
Preparing MongoDB entries [ DONE ]
Preparing Redis entries [ DONE ]
Preparing Ceilometer entries [ DONE ]
Preparing Aodh entries [ DONE ]
Preparing Nagios server entries [ DONE ]
Preparing Nagios host entries [ DONE ]
Preparing Puppet manifests [ DONE ]
Copying Puppet modules and manifests [ DONE ]
Applying 10.128.0.2_controller.pp
10.128.0.2_controller.pp: [ DONE ]
Applying 10.128.0.2_network.pp
10.128.0.2_network.pp: [ DONE ]
Applying 10.128.0.2_compute.pp
10.128.0.2_compute.pp: [ DONE ]
Applying Puppet manifests [ DONE ]
Finalizing [ DONE ]
**** Installation completed successfully ******
Additional information:
* A new answerfile was created in: /root/packstack-answers-20170227-052948.txt
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
* File /root/keystonerc_admin has been created on OpenStack client host 10.128.0.2. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://10.128.0.2/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
* To use Nagios, browse to http://10.128.0.2/nagios username: nagiosadmin, password: 7499218eb25a4808
* Because of the kernel update the host 10.128.0.2 requires reboot.
* The installation log file is available at: /var/tmp/packstack/20170227-052947-027Z4T/openstack-setup.log
* The generated manifests are available at: /var/tmp/packstack/20170227-052947-027Z4T/manifests
[root@instance-1 surinder_kumar_432]#
Hi Surinder this helped a lot thank you :)
ReplyDeleteI am getting the following error. Can you help ?
ReplyDeleteTesting if puppet apply is finished: 10.142.0.2_controller.pp [ | ]
10.142.0.2_controller.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]
ERROR : Error appeared during Puppet run: 10.142.0.2_controller.pp
Error: Puppet::Util::FileType::FileTypeCrontab could not read root: Cannot allocate memory - crontab -l 2>/dev/null