Hi,

here is my use case:

1) VM has a gateway role. So it needs to be ready/deployed first.
2) Others VMs that depends on the gateway, so they have the Gateway VM has
parent node checked.

If the gateway is not ready, other VMs won't have access to some network
resources and therefor can't finish their setups.

But the gateway, has to forward some port to the other VMs. It needs to
knwo the address ip for the other VMs. So I get the service json file thru
onegate, gut it seems the nodes that are not actually deployed are
absents., the nodes attribute is empty.

Here is my service json from onegate:
{"SERVICE":{"name":"openstack","id":"224","roles":[{"name":"gateway","cardinality":1,"state":"1","nodes":[{"deploy_id":1740,"running":false,"vm_info":{"VM":{"NAME":"gateway-0.s224","ID":"1740","USER_TEMPLATE":{"GATEWAY_IFACE":"eth1","HYPERVISOR":"kvm","LOGO":"images/logos/centos.png","ROLE_NAME":"gateway","SERVICE_ID":"224","SUNSTONE_CAPACITY_SELECT":"YES","SUNSTONE_NETWORK_SELECT":"YES"},"TEMPLATE":{"NIC":[{"IP":"192.168.199.124","MAC":"02:00:c0:a8:c7:7c","NETWORK":"admin"},{"IP":"10.0.0.01","MAC":"02:00:0a:00:00:00","NETWORK":"WAN"}]}}}}]},{"name":"controller","cardinality":1,"state":0,"nodes":[]},{"name":"network","cardinality":1,"state":0,"nodes":[]},{"name":"storage","cardinality":1,"state":0,"nodes":[]},{"name":"block","cardinality":1,"state":0,"nodes":[]},{"name":"compute","cardinality":1,"state":0,"nodes":[]}]}}

How can I deal with this kind of situation? Is there a way to have a
complete definition of my service?

Can oneflow starts all the VM on hold, except my gateway, and thru onegate
I can release each VM I want at the right moment when my gateway is ready?

best regards,

Edouard
_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to