Re:

2018-04-20 Thread Cory Johns
It looks like you're running up against
https://github.com/juju/python-libjuju/issues/216 for which there is a
pending fix at https://github.com/juju/python-libjuju/pull/217 which is
blocked because I couldn't figure out how to cover it in the test suite.
Please comment on that issue / PR and I will follow-up to either just make
a skipped test that can be manually run or come up with a way to include
it, and then get it released and conjure-up updated.

On Fri, Apr 20, 2018 at 5:03 PM, sSeBBaSs  wrote:

> Hi Cory,
>
> This how you can reproduce:
>
> juju bootstrap aws/us-east-1 juju-test-controller00 \
>   --config vpc-id=vpc- --config vpc-id-force=true \
>   --bootstrap-constraints "root-disk=128G mem=16G cores=4" \
>   --credential xx-xx-xx \
>   --auto-upgrade=false \
>   --bootstrap-series xenial
>
> juju change-user-password
>
> juju add-model kube00 us-east-1 --config vpc-id=vpc-
>
> conjure-up canonical-kubernetes aws juju-test-controller00 kube00
> [info] Summoning canonical-kubernetes to aws
> [error] no credentials provided
> [warning] Shutting down
>
> Here's the log file:
>
> 2018-04-20 17:59:58,870 [DEBUG] conjure-up/_unspecified_spell - juju.py:34
> - bin_path candidate found
> 2018-04-20 17:59:58,871 [DEBUG] conjure-up/_unspecified_spell - juju.py:34
> - wait_path candidate found
> 2018-04-20 17:59:58,984 [DEBUG] conjure-up/_unspecified_spell - app.py:279
> - Juju version: 2.3.6-xenial-amd64, conjure-up version: 2.5.6
> 2018-04-20 17:59:58,994 [DEBUG] conjure-up/_unspecified_spell - app.py:363
> - found spell {'key': 'canonical-kubernetes', 'name': 'Canonical
> Distribution of Kubernetes', 'description': 'Kubernetes is an open-source
> platform for deploying, scaling, and operations of application containers
> across a cluster of hosts. Kubernetes is portable in that it works with
> public, private, and hybrid clouds. Extensible through a pluggable
> infrastructure. Self healing in that it will automatically restart and
> place containers on healthy nodes if a node ever goes away.\n'}
> 2018-04-20 17:59:58,994 [DEBUG] conjure-up/_unspecified_spell -
> telemetry.py:31 - Spell Choice: canonical-kubernetes
> 2018-04-20 17:59:58,995 [DEBUG] conjure-up/canonical-kubernetes -
> download.py:60 - Path is local filesystem, copying
> /snap/conjure-up/994/spells/canonical-kubernetes to
> /home/sjuarez/.cache/conjure-up/canonical-kubernetes
> 2018-04-20 18:00:02,794 [DEBUG] conjure-up/canonical-kubernetes -
> step.py:27 - steps: [ 00_process-providertype v: False c: []>,  of Kubernetes 01_select-network v: True c: []>,  Distribution of Kubernetes 02_get-kubectl v: True c: []>,  Canonical Distribution of Kubernetes 03_cluster-info v: True c: []>,
>  []>]
> 2018-04-20 18:00:07,479 [DEBUG] conjure-up/canonical-kubernetes -
> telemetry.py:17 - Showing screen: Application Start
> 2018-04-20 18:00:07,490 [DEBUG] conjure-up/canonical-kubernetes -
> telemetry.py:31 - OS: Linux-4.13.0-38-generic-x86_
> 64-with-debian-stretch-sid
> 2018-04-20 18:00:07,882 [INFO] conjure-up/canonical-kubernetes -
> events.py:173 - Watching for shutdown
> 2018-04-20 18:00:07,921 [DEBUG] conjure-up/canonical-kubernetes -
> events.py:53 - Awaiting Shutdown at conjureup/events.py:176
> 2018-04-20 18:00:07,921 [DEBUG] conjure-up/canonical-kubernetes -
> utils.py:512 - Pulling bundle for canonical-kubernetes from channel: stable
> 2018-04-20 18:00:09,928 [DEBUG] conjure-up/canonical-kubernetes -
> events.py:53 - Awaiting Bootstrapped at conjureup/controllers/
> bootstrap/tui.py:17
> 2018-04-20 18:00:11,332 [INFO] conjure-up/canonical-kubernetes -
> juju.client.connection: connection.py:464 - Driver connected to juju wss://
> 35.172.211.159:17070/api
> 2018-04-20 18:00:11,664 [DEBUG] conjure-up/canonical-kubernetes -
> events.py:53 - Setting Error at conjureup/events.py:149
> 2018-04-20 18:00:11,668 [ERROR] conjure-up/canonical-kubernetes -
> events.py:161 - Unhandled exception in  coro= /snap/conjure-up/994/lib/python3.6/site-packages/conjureup/controllers/bootstrap/common.py:15>
> exception=JujuAPIError('no credentials provided',)>
> Traceback (most recent call last):
>   File "/snap/conjure-up/994/lib/python3.6/site-packages/
> conjureup/controllers/bootstrap/common.py", line 19, in run
> await self.do_add_model()
>   File "/snap/conjure-up/994/lib/python3.6/site-packages/
> conjureup/controllers/bootstrap/common.py", line 24, in do_add_model
> if await juju.model_available():
>   File "/snap/conjure-up/994/lib/python3.6/site-packages/conjureup/juju.py",
> line 153, in model_available
> await controller.connect(app.provider.controller)
>   File "/snap/conjure-up/994/lib/python3.6/site-packages/juju/controller.py",
> line 68, in connect
> await self._connector.connect_controller(controller_name)
>   File 
> "/snap/conjure-up/994/lib/python3.6/site-packages/juju/client/connector.py",
> line 90, in connect_controller
> 

Re:

2018-04-20 Thread sSeBBaSs
Hi Cory,

This how you can reproduce:

juju bootstrap aws/us-east-1 juju-test-controller00 \
  --config vpc-id=vpc- --config vpc-id-force=true \
  --bootstrap-constraints "root-disk=128G mem=16G cores=4" \
  --credential xx-xx-xx \
  --auto-upgrade=false \
  --bootstrap-series xenial

juju change-user-password

juju add-model kube00 us-east-1 --config vpc-id=vpc-

conjure-up canonical-kubernetes aws juju-test-controller00 kube00
[info] Summoning canonical-kubernetes to aws
[error] no credentials provided
[warning] Shutting down

Here's the log file:

2018-04-20 17:59:58,870 [DEBUG] conjure-up/_unspecified_spell - juju.py:34
- bin_path candidate found
2018-04-20 17:59:58,871 [DEBUG] conjure-up/_unspecified_spell - juju.py:34
- wait_path candidate found
2018-04-20 17:59:58,984 [DEBUG] conjure-up/_unspecified_spell - app.py:279
- Juju version: 2.3.6-xenial-amd64, conjure-up version: 2.5.6
2018-04-20 17:59:58,994 [DEBUG] conjure-up/_unspecified_spell - app.py:363
- found spell {'key': 'canonical-kubernetes', 'name': 'Canonical
Distribution of Kubernetes', 'description': 'Kubernetes is an open-source
platform for deploying, scaling, and operations of application containers
across a cluster of hosts. Kubernetes is portable in that it works with
public, private, and hybrid clouds. Extensible through a pluggable
infrastructure. Self healing in that it will automatically restart and
place containers on healthy nodes if a node ever goes away.\n'}
2018-04-20 17:59:58,994 [DEBUG] conjure-up/_unspecified_spell -
telemetry.py:31 - Spell Choice: canonical-kubernetes
2018-04-20 17:59:58,995 [DEBUG] conjure-up/canonical-kubernetes -
download.py:60 - Path is local filesystem, copying
/snap/conjure-up/994/spells/canonical-kubernetes to
/home/sjuarez/.cache/conjure-up/canonical-kubernetes
2018-04-20 18:00:02,794 [DEBUG] conjure-up/canonical-kubernetes -
step.py:27 - steps: [, , , ,
]
2018-04-20 18:00:07,479 [DEBUG] conjure-up/canonical-kubernetes -
telemetry.py:17 - Showing screen: Application Start
2018-04-20 18:00:07,490 [DEBUG] conjure-up/canonical-kubernetes -
telemetry.py:31 - OS: Linux-4.13.0-38-generic-x86_64-with-debian-stretch-sid
2018-04-20 18:00:07,882 [INFO] conjure-up/canonical-kubernetes -
events.py:173 - Watching for shutdown
2018-04-20 18:00:07,921 [DEBUG] conjure-up/canonical-kubernetes -
events.py:53 - Awaiting Shutdown at conjureup/events.py:176
2018-04-20 18:00:07,921 [DEBUG] conjure-up/canonical-kubernetes -
utils.py:512 - Pulling bundle for canonical-kubernetes from channel: stable
2018-04-20 18:00:09,928 [DEBUG] conjure-up/canonical-kubernetes -
events.py:53 - Awaiting Bootstrapped at
conjureup/controllers/bootstrap/tui.py:17
2018-04-20 18:00:11,332 [INFO] conjure-up/canonical-kubernetes -
juju.client.connection: connection.py:464 - Driver connected to juju wss://
35.172.211.159:17070/api
2018-04-20 18:00:11,664 [DEBUG] conjure-up/canonical-kubernetes -
events.py:53 - Setting Error at conjureup/events.py:149
2018-04-20 18:00:11,668 [ERROR] conjure-up/canonical-kubernetes -
events.py:161 - Unhandled exception in 
exception=JujuAPIError('no credentials provided',)>
Traceback (most recent call last):
  File
"/snap/conjure-up/994/lib/python3.6/site-packages/conjureup/controllers/bootstrap/common.py",
line 19, in run
await self.do_add_model()
  File
"/snap/conjure-up/994/lib/python3.6/site-packages/conjureup/controllers/bootstrap/common.py",
line 24, in do_add_model
if await juju.model_available():
  File
"/snap/conjure-up/994/lib/python3.6/site-packages/conjureup/juju.py", line
153, in model_available
await controller.connect(app.provider.controller)
  File
"/snap/conjure-up/994/lib/python3.6/site-packages/juju/controller.py", line
68, in connect
await self._connector.connect_controller(controller_name)
  File
"/snap/conjure-up/994/lib/python3.6/site-packages/juju/client/connector.py",
line 90, in connect_controller
bakery_client=self.bakery_client_for_controller(controller_name),
  File
"/snap/conjure-up/994/lib/python3.6/site-packages/juju/client/connector.py",
line 59, in connect
self._connection = await Connection.connect(**kwargs)
  File
"/snap/conjure-up/994/lib/python3.6/site-packages/juju/client/connection.py",
line 166, in connect
await self._connect_with_redirect([(endpoint, cacert)])
  File
"/snap/conjure-up/994/lib/python3.6/site-packages/juju/client/connection.py",
line 509, in _connect_with_redirect
login_result = await self._connect_with_login(endpoints)
  File
"/snap/conjure-up/994/lib/python3.6/site-packages/juju/client/connection.py",
line 481, in _connect_with_login
result = (await self.login())['response']
  File
"/snap/conjure-up/994/lib/python3.6/site-packages/juju/client/connection.py",
line 536, in login
"params": params,
  File
"/snap/conjure-up/994/lib/python3.6/site-packages/juju/client/connection.py",
line 314, in rpc
raise errors.JujuAPIError(result)
juju.errors.JujuAPIError: no credentials provided
2018-04-20 18:00:11,696 

Re:

2018-04-20 Thread Cory Johns
Sebastian,

Can you provide us with the conjure-up.log file from
~/.cache/conjure-up/conjure-up.log?  Are you selecting a credential name
from the list in conjure-up and then getting that error, or is the error
coming from later in the process (after starting the deployment)?

I don't think that the non-admin user should make any difference, as long
as you can authenticate to the controller as that user with Juju, but I
haven't actually tested with a non-standard user.  But the error sounds
like it's coming from something else anyway, and as I said, I wouldn't
expect it to make much difference.

- Cory

On Fri, Apr 20, 2018 at 2:29 PM, sSeBBaSs  wrote:

> Hi guys
>
> I need some help.
> I'm trying to conjure-up canonical-kubernetes, in an already bootstrapped
> controller on an custom model, with another user than the default admin,
> and I keep receiving a credentials not found error message.
>
>
>
>
>
> --
> ---
> Sebastian Juárez
> Mail: ssebb...@gmail.com
>
>
>
> --
> Juju mailing list
> Juju@lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/juju
>
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju