-2

Curl version installed on My system was :curl 7.35.0 I tried to run the below command but it returned an errorcode 7:

outpt=0;

FUEL_TOKEN_JSON="$( /usr/bin/curl --noproxy '*' -s -H 'Content-Type: application/json' -X POST -d '{"auth":{"passwordCredentials":{"username":"","password":""},"tenantName":""}}' -e "http://IP:port/" -k -A 'Mozilla' "http://IP:port/keystone/v2.0/tokens" || :)" || outpt=$?

ErrorReceived:puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class ::keystone at /etc/puppet/modules/fuel/manifests/keystone.pp

closed as unclear what you're asking by muru, Mark Kirby, Videonauth, MadMike, Luís de Sousa Jun 8 '16 at 9:00

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Welcome to Ask Ubuntu! You should make your question more clear and understanding, see as well how to ask a good question. Thank you. – Videonauth Jun 6 '16 at 9:19
  • 3
    This is not a problem with curl, but with your Puppet class. Fix that. – muru Jun 6 '16 at 10:32
  • 1
    @muru Perhaps that is better suited as an answer? – Thomas Ward Jun 6 '16 at 11:10
1

As can be seen from the output, the problem is not with curl, but with your Puppet class:

ErrorReceived:puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class ::keystone at /etc/puppet/modules/fuel/manifests/keystone.pp

Specifically, something's wrong with /etc/puppet/modules/fuel/manifests/keystone.pp on your Puppet server.

Not the answer you're looking for? Browse other questions tagged or ask your own question.