nfvlabs / openmano

Openmano is an open source project that provides a practical implementation of the reference architecture for Management & Orchestration under standardization at ETSI’s NFV ISG
Apache License 2.0
180 stars 74 forks source link

Unknown error when trying to get the host info with host-add.sh #19

Closed gerardo-garcia closed 9 years ago

gerardo-garcia commented 9 years ago

user@host01 ~$ sudo ./host-add.sh user 10.100.0.1 > host01.yaml ./host-add.sh: line 31: 0000:04:11.7: syntax error in expression (error token is ":04:11.7") ./host-add.sh: line 31: 0000:04:11.7: syntax error in expression (error token is ":04:11.7") ./host-add.sh: line 31: 0000:04:11.7: syntax error in expression (error token is ":04:11.7") ./host-add.sh: line 31: 0000:04:11.7: syntax error in expression (error token is ":04:11.7") ./host-add.sh: line 31: 0000:04:11.7: syntax error in expression (error token is ":04:11.7") ./host-add.sh: line 31: 0000:04:11.7: syntax error in expression (error token is ":04:11.7") ./host-add.sh: line 31: 0000:04:11.7: syntax error in expression (error token is ":04:11.7") ./host-add.sh: line 31: 0000:04:11.7: syntax error in expression (error token is ":04:11.7") ./host-add.sh: line 31: 0000:04:11.7: syntax error in expression (error token is ":04:11.7") ./host-add.sh: line 31: 0000:04:11.7: syntax error in expression (error token is ":04:11.7") ./host-add.sh: line 31: 0000:04:11.7: syntax error in expression (error token is ":04:11.7") ./host-add.sh: line 31: 0000:04:11.7: syntax error in expression (error token is ":04:11.7") ./host-add.sh: line 31: 0000:04:11.7: syntax error in expression (error token is ":04:11.7") ./host-add.sh: line 31: 0000:04:11.7: syntax error in expression (error token is ":04:11.7") ./host-add.sh: line 31: 0000:04:11.7: syntax error in expression (error token is ":04:11.7") ./host-add.sh: line 31: 0000:04:11.7: syntax error in expression (error token is ":04:11.7") ./host-add.sh: line 31: 0000:04:11.7: syntax error in expression (error token is ":04:11.7")

The error seems to be related with the procedure for getting the SR-IOV interfaces.

pamonmo commented 9 years ago

The script uses libvirt information about interfaces. In case VF driver is not loaded the SRIOV information is not in libvirt and the scrip generates that error.

The script has been updated to automatically load the VF driver if it is not loaded and remove it prior exiting