Patrick, Jamo,

I did the libvirt-python install and it solve the problem. (see attached)

Now, we need to add the two missing nodes to get the five required nodes. I 
will give it a try and let you know.

Thanks Jamo.

Patrick, I'll let you share with Jamo what you did with the admin_network and 
public_network stuff.



François

-----Original Message-----
From: Jamo Luhrsen [mailto:[email protected]] 
Sent: 4 novembre 2016 12:04
To: Lemay, Patrick; [email protected]
Cc: Poulin, Jocelyn (6007251); Guay, Francois (A214312)
Subject: Re: [opnfv-tech-discuss] [Apex] deployment error

Patrick,

I've had similar problems trying to get apex baremetal to work on the jumphost 
I'm working with.  I hit the libvirt issue the other day.  I think I just did a 
"yum install libvirt-python"  try that.

I'm still stuck on what I need to do with the admin_network, public_network 
stuff that I think you have overcome recently.  Can you recap the steps you 
took?

JamO

On 11/04/2016 08:47 AM, Lemay, Patrick wrote:
> Hi I finally create the br-public by hand instead of script. It work 
> but now I’m stock to another. «ImportError: No module named libvirt». 
> I’m using your deployment cd. All the dependencies should be install. I start 
> to tshoot the problem but I’m sure that you’ve already see that bug.
> 
>  
> 
> All python version installed:
> 
> [root@jumphost opnfv-apex]# python
> 
> python      python2     python2.7   python3     python3.4   python3.4m 
> 
>  
> 
> Output from the opnfv-deploy script:
> 
> INFO: virsh networks set:
> 
>  Name                 State      Autostart     Persistent
> 
> ----------------------------------------------------------
> 
> admin_network        active     yes           yes
> 
> default              active     yes           yes
> 
> public_network       active     yes           yes
> 
>  
> 
> All dependencies installed and running
> 
> 4 Nov 10:58:33 ntpdate[27293]: adjust time server 206.108.0.133 offset 
> -0.002592 sec
> 
> Volume undercloud exists. Deleting Existing Volume 
> /var/lib/libvirt/images/undercloud.qcow2
> 
> Vol undercloud.qcow2 deleted
> 
>  
> 
> Vol undercloud.qcow2 created
> 
>  
> 
> Traceback (most recent call last):
> 
>   File "/usr/libexec/openstack-tripleo/configure-vm", line 8, in 
> <module>
> 
>    import libvirt
> 
> ImportError: No module named libvirt
> 
>  
> 
>  
> 
> Thanks,
> 
>  
> 
>  
> 
>  
> 
>  
> 
> *From:*Lemay, Patrick
> *Sent:* November-01-16 11:42 AM
> *To:* '[email protected]'
> *Cc:* Bernier, Daniel (520165); Guay, Francois (A214312); Poulin, 
> Jocelyn (6007251)
> *Subject:* Bell deployment config
> 
>  
> 
> Hi guys, I have some issues regarding opnfv baremetal deployment. I 
> install a jumphost from opnfv cd. I configure the inventory with IPMI ip mac 
> and users.
> 
>  
> 
> I’m not sure that I configure the network_settings correctly for 
> public_network.
> 
>  
> 
>  
> 
> For the deployment I use pod 2 and pod 3 from the drawing. The server 
> Catherine is use for the jumphost. Interface enp1s0f0 is for pxe and 
> enp1s0f1 is for public_network . The other 5 servers are for 
> deployment IPMI ready. All interfaces in vlan
> 1020 are pxe ready and disk are configured raid 1. I have a problem deploying 
> undercloud.
> 
>  
> 
>  
> 
> I have this error related to the undercloud deployment:
> 
> INFO: Creating Virsh Network: admin_network & OVS Bridge: br-admin
> 
> INFO: Creating Virsh Network: public_network & OVS Bridge: br-public
> 
> INFO: Bridges set:
> 
> br-admin
> 
> br-public
> 
> enp1s0f0
> 
> INFO: Interface enp1s0f0 bridged to bridge br-admin for enabled 
> network: admin_network
> 
> /var/opt/opnfv/lib/common-functions.sh: line 18: 5 - ( / 8) : syntax 
> error: operand expected (error token is "/ 8) ")
> 
> ERROR: IPADDR or NETMASK/PREFIX missing for enp1s0f1
> 
> ERROR: Unable to bridge interface enp1s0f1 to bridge br-public for 
> enabled network: public_network
> 
>  
> 
>  
> 
> Could you help please? There is no vmware at all in the setup only baremetal..
> 
>  
> 
> Regards,
> 
>  
> 
>  
> 
>  
> 
> Patrick Lemay
> 
> Consultant Managed Services Engineering Bell Canada
> 
> 671 de la Gauchetière O. Bur. 610, Montreal, Quebec  H3B 2M8
> 
> Tel:  (514) 870-1540
> 
>  
> 
> 
> 
> _______________________________________________
> opnfv-tech-discuss mailing list
> [email protected]
> https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss
> 



[root@jumphost opnfv-apex]# yum install libvirt-python
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ca.mirror.babylon.network
 * extras: ca.mirror.babylon.network
 * updates: ca.mirror.babylon.network
Resolving Dependencies
--> Running transaction check
---> Package libvirt-python.x86_64 0:1.2.17-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================
 Package                             Arch                        Version        
                    Repository                 Size
====================================================================================================================================
Installing:
 libvirt-python                      x86_64                      1.2.17-2.el7   
                    base                      309 k

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

Total download size: 309 k
Installed size: 1.2 M
Is this ok [y/d/N]: y
Downloading packages:
libvirt-python-1.2.17-2.el7.x86_64.rpm                                          
                             | 309 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libvirt-python-1.2.17-2.el7.x86_64                               
                                                1/1 
  Verifying  : libvirt-python-1.2.17-2.el7.x86_64                               
                                                1/1 

Installed:
  libvirt-python.x86_64 0:1.2.17-2.el7                                          
                                                    

Complete!
[root@jumphost opnfv-apex]#










**********************************************************************

[root@jumphost opnfv-apex]#  opnfv-deploy -n network_settings.yaml -i 
inventory.yaml -d deploy_settings.yaml --interactive --debug


This script is used to deploy the Apex Installer and Provision OPNFV Target 
System


Use -h to display help
Network Settings Configuration file: network_settings.yaml
Deployment Configuration file: deploy_settings.yaml
Interactive mode enabled
Enable debug output
INFO: Parsing deploy settings file...
ha_enabled=True
deploy_options_array[sfc]=False
deploy_options_array[tacker]=True
deploy_options_array[congress]=False
deploy_options_array[vpn]=False
deploy_options_array[dataplane]="ovs"
deploy_options_array[odl_version]=False
deploy_options_array[vpp]=False
deploy_options_array[sdn_l3]=False
deploy_options_array[sdn_controller]="opendaylight"
INFO: Parsing network settings file...
admin_network_dhcp_range=10.66.20.20,10.66.20.30
admin_network_usable_ip_range=10.66.20.10,10.26.20.90
admin_network_compute_interface=nic1
admin_network_controller_interface=nic1
admin_network_gateway=10.66.20.1
admin_network_bridged_interface=enp1s0f0
admin_network_enabled=True
admin_network_cidr=10.66.20.0/24
admin_network_provisioner_ip=10.66.20.101
admin_network_network_type=bridged
admin_network_introspection_range=10.66.20.40,10.66.20.90
admin_network_bond_interfaces=
public_network_vlan=native
public_network_usable_ip_range=10.66.25.10,10.66.25.199
public_network_compute_interface=nic3
public_network_controller_interface=nic3
public_network_gateway=10.66.25.1
public_network_bridged_interface=enp1s0f1
public_network_enabled=True
public_network_cidr=10.66.25.0/24
public_network_provisioner_ip=10.66.25.101
public_network_network_type=bridged
public_network_floating_ip_range=10.66.25.200,10.66.25.220
enabled_network_list='admin_network public_network'
ip_addr_family=4
dns_servers='8.8.8.8 8.8.4.4'
domain_name='opnfvapex.com'
Internet connectivity detected
   Active: inactive (dead)
● libvirtd.service - Virtualization daemon
   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor 
preset: enabled)
   Active: active (running) since Thu 2016-11-03 14:55:02 EDT; 22h ago
     Docs: man:libvirtd(8)
           http://libvirt.org
 Main PID: 3068 (libvirtd)
   CGroup: /system.slice/libvirtd.service
           ├─3068 /usr/sbin/libvirtd
           ├─5763 /sbin/dnsmasq 
--conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro 
--dhcp-script=/usr/libexec/libvi...
           └─5764 /sbin/dnsmasq 
--conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro 
--dhcp-script=/usr/libexec/libvi...

Nov 03 15:00:45 jumphost.localdomain dnsmasq[5763]: using nameserver 8.8.8.8#53
Nov 03 15:02:01 jumphost.localdomain dnsmasq[5763]: no servers found in 
/etc/resolv.conf, will retry
Nov 03 15:02:11 jumphost.localdomain dnsmasq[5763]: reading /etc/resolv.conf
Nov 03 15:02:11 jumphost.localdomain dnsmasq[5763]: using nameserver 8.8.8.8#53
Nov 03 15:11:19 jumphost.localdomain dnsmasq[5763]: no servers found in 
/etc/resolv.conf, will retry
Nov 03 15:11:27 jumphost.localdomain dnsmasq[5763]: reading /etc/resolv.conf
Nov 03 15:11:27 jumphost.localdomain dnsmasq[5763]: using nameserver 8.8.8.8#53
Nov 03 15:21:40 jumphost.localdomain dnsmasq[5763]: no servers found in 
/etc/resolv.conf, will retry
Nov 03 15:21:50 jumphost.localdomain dnsmasq[5763]: reading /etc/resolv.conf
Nov 03 15:21:50 jumphost.localdomain dnsmasq[5763]: using nameserver 8.8.8.8#53
● openvswitch.service - Open vSwitch
   Loaded: loaded (/usr/lib/systemd/system/openvswitch.service; disabled; 
vendor preset: disabled)
   Active: active (exited) since Thu 2016-11-03 14:55:01 EDT; 22h ago
  Process: 3060 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
 Main PID: 3060 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/openvswitch.service

Nov 03 14:55:01 jumphost.localdomain systemd[1]: Starting Open vSwitch...
Nov 03 14:55:01 jumphost.localdomain systemd[1]: Started Open vSwitch.
 default              active     yes           yes
INFO: Creating Virsh Network: admin_network & OVS Bridge: br-admin
INFO: Creating Virsh Network: public_network & OVS Bridge: br-public
INFO: Bridges set: 
br-admin
br-public
enp1s0f0
INFO: Interface enp1s0f0 bridged to bridge br-admin for enabled network: 
admin_network
enp1s0f1
INFO: Interface enp1s0f1 bridged to bridge br-public for enabled network: 
public_network
INFO: virsh networks set: 
 Name                 State      Autostart     Persistent
----------------------------------------------------------
 admin_network        active     yes           yes
 default              active     yes           yes
 public_network       active     yes           yes

All dependencies installed and running
 4 Nov 13:38:06 ntpdate[27930]: adjust time server 192.95.27.155 offset 
0.002149 sec
Volume undercloud exists. Deleting Existing Volume 
/var/lib/libvirt/images/undercloud.qcow2
Vol undercloud.qcow2 deleted

Vol undercloud.qcow2 created

Created machine undercloud with UUID 9a3acc46-1eea-4ed8-8c8f-925b2d0fed93




Checking if Undercloud needs to be resized...


Skipped Undercloud resize, upstream is large enough
Injecting ssh key to Undercloud VM
[   0.0] Examining the guest ...
[   3.0] Setting a random seed
[   3.0] Running: mkdir -p /root/.ssh/
[   3.0] Uploading: /root/.ssh/id_rsa.pub to /root/.ssh/authorized_keys
[   3.0] Running: chmod 600 /root/.ssh/authorized_keys && restorecon 
/root/.ssh/authorized_keys
[   3.0] Running: cp /root/.ssh/authorized_keys /home/stack/.ssh/
[   3.0] Running: chown stack:stack /home/stack/.ssh/authorized_keys && chmod 
600 /home/stack/.ssh/authorized_keys
[   3.0] Finishing off
Domain undercloud started

Domain undercloud marked as autostarted

Undercloud VM has IP 192.168.122.203s.
                                                                 
ERROR: You must provide at least 5 nodes for HA baremetal deployment




***************************************************************

[root@jumphost opnfv-apex]# virsh list 
 Id    Name                           State
----------------------------------------------------
 2     undercloud                     running

[root@jumphost opnfv-apex]# 
_______________________________________________
opnfv-tech-discuss mailing list
[email protected]
https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss

Reply via email to