lost and found ( for me ? )

install OpenStack havana allinone node on CentOS6.4 VM which is running in Fedora 19 KVM host


[ KVM host ( Fedora 19 ) ]

[root@localhost ~]# cat /etc/fedora-release ;uname -ri;qemu-kvm --version
Fedora release 19 (Schrödinger’s Cat)
3.11.3-201.fc19.x86_64 x86_64
QEMU emulator version 1.6.1, Copyright (c) 2003-2008 Fabrice Bellard

[ VM ( CentOS 6.4 ) ]

vCPU*2
vMemory:2GB ( it would be better to allocate more memory, 4GB or so, if you can )
vHDD: 15GB
vNICs*2
eth0: for management ( 192.168.0.2/24 )
eth1: no ip ( public interface )
network driver for the VM is rtl8139
SELinux: permissive mode

configure hostname
when configuring localhost.localdomain as its hostname, I was not able to install openstack.
[root@openstack ~]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=openstack.localdomain

[root@openstack ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 openstack openstack.localdomain
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

As for eth1, no ip addresses are assigned.
After installing openstack, I configure bridge br-ex.
# cat ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="static"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPADDR=192.168.0.2
NETMASK=255.255.255.0
ONBOOT="yes"
TYPE="Ethernet"
GATEWAY=192.168.0.1

# cat ifcfg-eth1
DEVICE=eth1
TYPE=Ethernet
ONBOOT=yes
DEVICETYPE=ovs
OVS_BRIDGE=br-ex
TYPE=OVSPort

I have configured SELinux as permissive mode.
[root@openstack ~]# egrep -v ^# /etc/sysconfig/selinux | grep -v ^$
SELINUX=permissive
SELINUXTYPE=targeted


# sestatus -b | head -10
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   permissive
Mode from config file:          permissive
Policy version:                 24
Policy from config file:        targeted

install opnestack, open vswitch, python-netaddr from rdo repo.
# uname -ri
2.6.32-358.18.1.el6.x86_64 x86_64

# yum install -y http://rdo.fedorapeople.org/openstack/openstack-havana/rdo-release-havana.rpm

# yum update
Package           Arch   Version                        Repository        Size
================================================================================
Installing:
kernel            x86_64 2.6.32-358.118.1.openstack.el6 openstack-havana  26 M
Updating:
iproute           x86_64 2.6.32-130.el6ost.netns.2      openstack-havana 367 k
kernel-firmware   noarch 2.6.32-358.118.1.openstack.el6 openstack-havana  11 M
selinux-policy    noarch 3.7.19-216.el6                 openstack-havana 820 k
selinux-policy-targeted
                  noarch 3.7.19-216.el6                 openstack-havana 2.8 M

Transaction Summary
================================================================================
Install       1 Package(s)
Upgrade       4 Package(s)

# yum install python-netaddr

# yum install openstack-packstack

reboot the VM to boot 2.6.32-358.118.1.openstack kernel.
# reboot

# uname -ri
2.6.32-358.118.1.openstack.el6.x86_64 x86_64

# sestatus -b| head -6
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   permissive
Mode from config file:          permissive
Policy version:                 24
Policy from config file:        targeted


# export LANG=C
# echo $LANG
C



install opnestack with packstack --allinone.
if you face errors during the installation, try packstack command with answer-file option like:
# packstack --answer-file=packstack-answers-2013-x.txt



# packstack --allinone
Welcome to Installer setup utility
Packstack changed given value  to required value /root/.ssh/id_rsa.pub

Installing:
Clean Up...                                            [ DONE ]
Setting up ssh keys...root@192.168.0.2's password:
                                [ DONE ]
Adding pre install manifest entries...                 [ DONE ]
Adding MySQL manifest entries...                       [ DONE ]
Adding QPID manifest entries...                        [ DONE ]
Adding Keystone manifest entries...                    [ DONE ]
Adding Glance Keystone manifest entries...             [ DONE ]
Adding Glance manifest entries...                      [ DONE ]
Installing dependencies for Cinder...                  [ DONE ]
Adding Cinder Keystone manifest entries...             [ DONE ]
Adding Cinder manifest entries...                      [ DONE ]
Checking if the Cinder server has a cinder-volumes vg...[ DONE ]
Adding Nova API manifest entries...                    [ DONE ]
Adding Nova Keystone manifest entries...               [ DONE ]
Adding Nova Cert manifest entries...                   [ DONE ]
Adding Nova Conductor manifest entries...              [ DONE ]
Adding Nova Compute manifest entries...                [ DONE ]
Adding Nova Scheduler manifest entries...              [ DONE ]
Adding Nova VNC Proxy manifest entries...              [ DONE ]
Adding Nova Common manifest entries...                 [ DONE ]
Adding Openstack Network-related Nova manifest entries...[ DONE ]
Adding Neutron API manifest entries...                 [ DONE ]
Adding Neutron Keystone manifest entries...            [ DONE ]
Adding Neutron L3 manifest entries...                  [ DONE ]
Adding Neutron L2 Agent manifest entries...            [ DONE ]
Adding Neutron DHCP Agent manifest entries...          [ DONE ]
Adding Neutron Metadata Agent manifest entries...      [ DONE ]
Adding OpenStack Client manifest entries...            [ DONE ]
Adding Horizon manifest entries...                     [ DONE ]
Adding Swift Keystone manifest entries...              [ DONE ]
Adding Swift builder manifest entries...               [ DONE ]
Adding Swift proxy manifest entries...                 [ DONE ]
Adding Swift storage manifest entries...               [ DONE ]
Adding Swift common manifest entries...                [ DONE ]
Adding Provisioning manifest entries...                [ DONE ]
Adding Ceilometer manifest entries...                  [ DONE ]
Adding Ceilometer Keystone manifest entries...         [ DONE ]
Preparing servers...                                   [ DONE ]
Adding Nagios server manifest entries...               [ DONE ]
Adding Nagios host manifest entries...                 [ DONE ]
Adding post install manifest entries...                [ DONE ]
Installing Dependencies...                             [ DONE ]
Copying Puppet modules and manifests...                [ DONE ]
Applying Puppet manifests...
Applying 192.168.0.2_prescript.pp
192.168.0.2_prescript.pp :                   [ DONE ]               
Applying 192.168.0.2_mysql.pp
Applying 192.168.0.2_qpid.pp
192.168.0.2_mysql.pp :                           [ DONE ]       
192.168.0.2_qpid.pp :                             [ DONE ]      
Applying 192.168.0.2_keystone.pp
Applying 192.168.0.2_glance.pp
Applying 192.168.0.2_cinder.pp
192.168.0.2_keystone.pp :                     [ DONE ]             
192.168.0.2_glance.pp :                         [ DONE ]           
192.168.0.2_cinder.pp :                         [ DONE ]           
Applying 192.168.0.2_api_nova.pp
192.168.0.2_api_nova.pp :                     [ DONE ]             
Applying 192.168.0.2_nova.pp
192.168.0.2_nova.pp :                             [ DONE ]     
Applying 192.168.0.2_neutron.pp
192.168.0.2_neutron.pp :                       [ DONE ]           
Applying 192.168.0.2_osclient.pp
Applying 192.168.0.2_horizon.pp
192.168.0.2_osclient.pp :                     [ DONE ]             
192.168.0.2_horizon.pp :                       [ DONE ]            
Applying 192.168.0.2_ring_swift.pp
192.168.0.2_ring_swift.pp :                 [ DONE ]                 
Applying 192.168.0.2_swift.pp
Applying 192.168.0.2_provision.pp
Applying 192.168.0.2_ceilometer.pp
Applying 192.168.0.2_nagios.pp
Applying 192.168.0.2_nagios_nrpe.pp
192.168.0.2_swift.pp :                           [ DONE ]             
192.168.0.2_provision.pp :                   [ DONE ]                 
192.168.0.2_ceilometer.pp :                 [ DONE ]                  
192.168.0.2_nagios.pp :                         [ DONE ]              
192.168.0.2_nagios_nrpe.pp :               [ DONE ]                   
Applying 192.168.0.2_postscript.pp
192.168.0.2_postscript.pp :                 [ DONE ]                 
                          [ DONE ]

**** Installation completed successfully ******


Additional information:
* A new answerfile was created in: /root/packstack-answers-20131014-220854.txt
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
* To use the command line tools you need to source the file /root/keystonerc_admin created on 192.168.0.2
* To use the console, browse to http://192.168.0.2/dashboard
* To use Nagios, browse to http://192.168.0.2/nagios username : nagiosadmin, password : cb2c5f0785d94be6
* The installation log file is available at: /var/tmp/packstack/20131014-220854-Rj8N5Q/openstack-setup.log
#



# ovs-vsctl show
4a78c8b1-3a43-4fc8-8a1b-2fc293485314
   Bridge br-ex
       Port br-ex
           Interface br-ex
               type: internal
       Port "qg-43d1c1c2-32"
           Interface "qg-43d1c1c2-32"
               type: internal
   Bridge br-int
       Port br-int
           Interface br-int
               type: internal
       Port "qr-fca7acbd-10"
           tag: 1
           Interface "qr-fca7acbd-10"
               type: internal
   ovs_version: "1.11.0"
[root@openstack ~]# ovs-vsctl add-port br-ex eth1

[root@openstack ~]# ovs-vsctl show
4a78c8b1-3a43-4fc8-8a1b-2fc293485314
   Bridge br-ex
       Port br-ex
           Interface br-ex
               type: internal
       Port "eth1"
           Interface "eth1"
       Port "qg-43d1c1c2-32"
           Interface "qg-43d1c1c2-32"
               type: internal
   Bridge br-int
       Port br-int
           Interface br-int
               type: internal
       Port "qr-fca7acbd-10"
           tag: 1
           Interface "qr-fca7acbd-10"
               type: internal
   ovs_version: "1.11.0"
[root@openstack ~]#



login to dashboard

use:admin
credentials for admin are in keystonerc_admin file.
# cat keystonerc_admin
export OS_USERNAME=admin
export OS_TENANT_NAME=admin
export OS_PASSWORD=
export OS_AUTH_URL=http://192.168.0.2:35357/v2.0/
export PS1='[\u@\h \W(keystone_admin)]\$ '





No comments:

Post a Comment

Note: Only a member of this blog may post a comment.