lost and found ( for me ? )

Can’t Install Grizzly within Fedora 19 VM running within Fedora 19 KVM host ...

Referred to


[ logs including trial and errors ]

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

On the KVM host, enable nested VT.
[root@localhost ~]# virt-host-validate
 QEMU: Checking for hardware virtualization                                 : PASS
 QEMU: Checking for device /dev/kvm                                         : PASS
 QEMU: Checking for device /dev/vhost-net                                   : PASS
 QEMU: Checking for device /dev/net/tun                                     : PASS
  LXC: Checking for Linux >= 2.6.26                                         : PASS

root@localhost ~]# cat /sys/module/kvm_amd/parameters/nested
1

VM’s xml file
Set “host-passthrough”
virsh # dumpxml f19-vm1
<domain type='kvm'>
 <name>f19-vm1</name>
 <uuid>707d231a-2285-384f-93be-6bdf1472f4cb</uuid>
 <memory unit='KiB'>2097152</memory>
 <currentMemory unit='KiB'>1048576</currentMemory>
 <vcpu placement='static'>1</vcpu>
 <os>
   <type arch='x86_64' machine='pc-i440fx-1.6'>hvm</type>
   <boot dev='hd'/>
 </os>
 <features>
   <acpi/>
   <apic/>
   <pae/>
 </features>
 <cpu mode='host-passthrough'>
 </cpu>
 <clock offset='utc'/>
 <on_poweroff>destroy</on_poweroff>
 <on_reboot>restart</on_reboot>
 <on_crash>restart</on_crash>
 <devices>

The VM has one vNIC connected to NAT network
   <interface type='network'>
     <mac address='52:54:00:e5:ab:b1'/>
     <source network='network1'/>
     <target dev='vnet0'/>
     <model type='virtio'/>
     <alias name='net0'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>

On the KVM host, start the VM
# virsh start f19-vm1

On the VM
error.
[root@localhost ~]# yum install -y http://rdo.fedorapeople.org/openstack/openstack-grizzly/rdo-release-grizzly.rpm


[root@localhost ~]# yum install -y openstack-packstack


[root@localhost ~]# packstack --allinone
Welcome to Installer setup utility

Applying 192.168.100.140_mysql.pp
Applying 192.168.100.140_qpid.pp
                                                                   
ERROR : Error during puppet run : Error: Could not find package mysql-server
Please check log file /var/tmp/packstack/20130819-010612-pre6n8/openstack-setup.log for more information

Additional information:
* A new answerfile was created in: /root/packstack-answers-20130819-010613.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.100.140
* To use the console, browse to http://192.168.100.140/dashboard
* To use Nagios, browse to http://192.168.100.140/nagios username : nagiosadmin, password : ef648347a


Seen from http://funwithlinux.net/2013/08/install-openstack-grizzly-on-fedora-19-using-packstack-with-quantum-networking/, there are no need to RDO repo when installing grizzly in Fedora19.

On the F19 VM
Remove RDO repo.
[root@localhost yum.repos.d]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# rm rdo-release.repo
rm: remove regular file ‘rdo-release.repo’? y

Enable fedora-update rpo.
[root@localhost yum.repos.d]# less fedora-updates.repo
[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch
enabled=1



[root@localhost yum.repos.d]# yum install -y openstack-packstack
Loaded plugins: langpacks, refresh-packagekit
Package openstack-packstack-2013.1.1-0.3.dev527.fc19.noarch already installed and latest version
Nothing to do

Install to solve dependency problems
[root@localhost ~]# yum install python-django14

Also needs to edit /usr/lib/python2.7/site-packages/packstack/puppet/templates/nova_compute.pp

Before editing the file, I would like to clear configuration files..
How can I do that?

I’m not sure..
Remove the package, reboot the OS and then install that again.

[root@localhost ~]# yum remove -y openstack-packstack

[root@localhost ~]#  reboot

[root@localhost ~]# yum install -y openstack-packstack


Edit the file

From
    33 exec {'load_kvm':
    34     user => 'root',
    35     command => '/bin/sh /etc/sysconfig/modules/kvm.modules'
    36 }



To
    33 exec {'load_kvm':
    34     user => 'root',
    35     command => '/bin/sh /etc/sysconfig/modules/kvm.modules'
    36     onlyif => '/bin/test -e /etc/sysconfig/modules/kvm.modules',
    37 }



Try again

Success??
[root@localhost ~]# packstack --allinone
Welcome to Installer setup utility

Installing:
Clean Up...                                              [ DONE ]
Setting up ssh keys...                                   [ DONE ]
Adding pre install manifest entries...                   [ DONE ]
<snip>
Applying 192.168.100.140_prescript.pp
192.168.100.140_prescript.pp :                                       [ DONE ]
Applying 192.168.100.140_mysql.pp
Applying 192.168.100.140_qpid.pp
                                                                   
ERROR : Error during puppet run : Error: Could not find package mysql-server
Please check log file /var/tmp/packstack/20130819-014356-egAjNA/openstack-setup.log for more information

Additional information:
* A new answerfile was created in: /root/packstack-answers-20130819-014356.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.100.140
* To use the console, browse to http://192.168.100.140/dashboard
* To use Nagios, browse to http://192.168.100.140/nagios username : nagiosadmin, password : 0dd1cbc982704223
[root@localhost ~]#



Seen from the log, do I need to MySQL?
F 19 replace MySQL with MariaDB.
176, in applyPuppetManifest
   waitforpuppet(currently_running)
 File "/usr/lib/python2.7/site-packages/packstack/plugins/puppet_950.py", line 163, in waitforpuppet
   validate_puppet_logfile(log)
 File "/usr/lib/python2.7/site-packages/packstack/modules/ospluginutils.py", line 145, in validate_puppet_logfile
   raise PackStackError(message)
PackStackError: Error during puppet run : Error: Could not find package mysql-server

remove MariaDB and install MySQL

 111  yum remove -y mariadb-server
 112  yum install community-mysql-server.x86_64

 116  cp /usr/lib/python2.7/site-packages/packstack/puppet/templates/nova_compute.pp .
 117  yum remove -y openstack-packstack
 118  yum install -y openstack-packstack
 119  cp nova_compute.pp /usr/lib/python2.7/site-packages/packstack/puppet/templates/


try again
nn , still face the error..
[root@localhost ~]# packstack --allinone Welcome to Installer setup utility

Installing:
Clean Up...                                              [ DONE ]
Setting up ssh keys...                                   [ DONE ]
Adding pre install manifest entries...                   [ DONE ]
Adding MySQL manifest entries...                         [ DONE ]
Adding QPID manifest entries...                          [ DONE ]
Adding Keystone manifest entries...                      [ DONE ]

ERROR : Error during puppet run : Error: Could not find package mysql-server
Please check log file /var/tmp/packstack/20130819-020205-CepYqg/openstack-setup.log for more information

Additional information:
* A new answerfile was created in: /root/packstack-answers-20130819-020205.txt
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
* Did not create a cinder volume group, one already existed
* To use the command line tools you need to source the file /root/keystonerc_admin created on 192.168.100.140
* To use the console, browse to http://192.168.100.140/dashboard
* To use Nagios, browse to http://192.168.100.140/nagios username : nagiosadmin, password : 95f858c0b0b64c6e



No comments:

Post a Comment

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