Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

no matter what i do i get

ERROR error parsing environment "maas": no public ssh keys found

My environments.yaml file. (authorized key added as per another ask, ubuntu help example)

juju: environments (dimitern edit: what is this line for?)

environments:
  maas:
        type: maas
        maas-server: 'http://xxx.xxx.xxx.xx/MAAS/'
        maas-oauth: ' WVNY2RCzVUKSpur3xW:pEpz9QUcLmzV5Kqq3G:mLyWusVjbSAMPLE'
        admin-secret: 'SAMPLE'
        bootstrap-addresses-delay: 10
        bootstrap-retry-delay: 5
        bootstrap-timeout: 3600
        authorized-keys-path: ~/.ssh/id_rsa.pub
share|improve this question

1 Answer 1

You don't need to specify authorized-keys-path as juju will automatically discover your ~/.ssh/* keys and try to use them.

See juju help authorized-keys for more information how to manage these in an environment.

Also you don't need to specify admin-secret, it will be auto-generated when bootstrapping. The bootstrap-addresses-delay and bootstrap-retry-delay rarely need to be overridden in environments.yaml at all (and you're using the defaults anyway, so I'd skip them), just bootstrap-timeout.

share|improve this answer
    
nothing is happening still getting the same error –  JUAN CABALLERO May 24 at 23:00
    
What version of Juju are you using (run juju version) ? You might need to upgrade to a more recent version, as lots of bugs were fixed between 16 May and now. –  dimitern Jul 27 at 15:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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