Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to list networks unless projectid is also sent. #184

Open
BEfelipe opened this issue Feb 21, 2019 · 0 comments
Open

unable to list networks unless projectid is also sent. #184

BEfelipe opened this issue Feb 21, 2019 · 0 comments

Comments

@BEfelipe
Copy link

when networks are not available to in default and only available for individual projects, the api call to listNetworks will not return any networks unless the projectid is sent as part of the API call.

in this case, this plugin fails to find the network_name or network_id

example.

curl 'http://cloudstack.example.com:8080/client/api?command=listNetworks&id=bat-80&projectid=08bbf424-f99e-4306-9b8b-a5693e5e783f&apikey=XXXXXXXXXXXXX&signature=XXXXXXXXXXX'

1 607e9baa-8219-464b-aba7-653b39b9d0dd bat-80

curl 'http://cloudstack.example.com:8080/client/api?command=listNetworks&name=bat-80&apikey=XXXXXXXXXX&signature=XXXXXXXXX'

  • xmllint --format -
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 114 100 114 0 0 4252 0 --:--:-- --:--:-- --:--:-- 4384

Vagrant fails to lookup the network ID or NAME

==> default: Fetching UUID for network with name 'bat-80'
/Users/XXX/.vagrant.d/gems/2.4.4/gems/vagrant-cloudstack-1.5.0/lib/vagrant-cloudstack/service/cloudstack_resource_service.rb:47:in resourcefield_to_id': No UUID found for network with name 'bat-80' (VagrantPlugins::Cloudstack::Exceptions::CloudstackResourceNotFound) from /Users/XXXX/.vagrant.d/gems/2.4.4/gems/vagrant-cloudstack-1.5.0/lib/vagrant-cloudstack/service/cloudstack_resource_service.rb:65:in name_to_id'
from /Users/XXXX/.vagrant.d/gems/2.4.4/gems/vagrant-cloudstack-1.5.0/lib/vagrant-cloudstack/service/cloudstack_resource_service.rb:17:in `sync_resource'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant