
Hello, in an interactive shell, I can successfully execute such a command: add network --name brv13 --vlan-id 13 --datacenter-identifier Cines --description A_FORM but the same as an argument of ovirt-shell, # ovirt-shell -E "add network --name brv13 --vlan-id 13 --datacenter-identifier Cines --description A_FORM" it leads me to "datacenter Cines does not exist." of course, datacenter Cines does exist! What's wrong there? -- Nathanaël Blanchet Supervision réseau Pôle Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr

On 04/06/2016 07:28 PM, Nathanaël Blanchet wrote:
Hello, in an interactive shell, I can successfully execute such a command: add network --name brv13 --vlan-id 13 --datacenter-identifier Cines --description A_FORM but the same as an argument of ovirt-shell, # ovirt-shell -E "add network --name brv13 --vlan-id 13 --datacenter-identifier Cines --description A_FORM" it leads me to "datacenter Cines does not exist."
of course, datacenter Cines does exist!
What's wrong there?
That command should fail in both the interactive mode and with the "-E" option. The problem is that the "--datacenter-identifier" option expects an identifier, not a name. You should use "--datacenter-name" instaed: $ ovirt-shell -E "add network --name brv13 --vlan-id 13 --datacenter-name Cines --description A_FORM" -- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
participants (2)
-
Juan Hernández
-
Nathanaël Blanchet