Hi Cory,

This how you can reproduce:

juju bootstrap aws/us-east-1 juju-test-controller00 \
  --config vpc-id=vpc-xxxx --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-xxxx

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: [<StepModel Canonical Distribution of Kubernetes
00_process-providertype v: False c: []>, <StepModel Canonical Distribution
of Kubernetes 01_select-network v: True c: []>, <StepModel Canonical
Distribution of Kubernetes 02_get-kubectl v: True c: []>, <StepModel
Canonical Distribution of Kubernetes 03_cluster-info v: True c: []>,
<StepModel Canonical Distribution of Kubernetes 04_enable-cni v: False 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 <Task finished
coro=<BaseBootstrapController.run() done, defined at
/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
    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 [DEBUG] conjure-up/canonical-kubernetes -
events.py:53 - Setting Shutdown at conjureup/events.py:166
2018-04-20 18:00:11,700 [DEBUG] conjure-up/canonical-kubernetes -
events.py:53 - Received Shutdown at conjureup/events.py:176
2018-04-20 18:00:11,701 [INFO] conjure-up/canonical-kubernetes -
events.py:180 - Shutting down
2018-04-20 18:00:11,702 [INFO] conjure-up/canonical-kubernetes -
app_config.py:224 - Storing conjure-up state
2018-04-20 18:00:11,886 [INFO] conjure-up/canonical-kubernetes -
app_config.py:233 - State saved
2018-04-20 18:00:11,887 [DEBUG] conjure-up/canonical-kubernetes -
events.py:200 - Cancelling pending task: <Task finished
coro=<WebSocketCommonProtocol.close_connection() done, defined at
/snap/conjure-up/994/lib/python3.6/site-packages/websockets/protocol.py:695>
result=None>
2018-04-20 18:00:11,887 [DEBUG] conjure-up/canonical-kubernetes -
events.py:200 - Cancelling pending task: <Task pending
coro=<BootstrapController.wait() running at
/snap/conjure-up/994/lib/python3.6/site-packages/conjureup/controllers/bootstrap/tui.py:17>
wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at
0x7f4593155078>()]>>
2018-04-20 18:00:11,888 [DEBUG] conjure-up/canonical-kubernetes -
events.py:200 - Cancelling pending task: <Task finished
coro=<WebSocketCommonProtocol.transfer_data() done, defined at
/snap/conjure-up/994/lib/python3.6/site-packages/websockets/protocol.py:486>
result=None>
2018-04-20 18:00:12,550 [ERROR] conjure-up/canonical-kubernetes -
concurrent.futures: _base.py:299 - exception calling callback for <Future
at 0x7f45907ea4a8 state=finished returned NoneType>
Traceback (most recent call last):
  File
"/snap/conjure-up/994/usr/lib/python3.6/concurrent/futures/_base.py", line
297, in _invoke_callbacks
    callback(self)
  File "/snap/conjure-up/994/usr/lib/python3.6/asyncio/futures.py", line
419, in _call_set_state
    dest_loop.call_soon_threadsafe(_set_state, destination, source)
  File "/snap/conjure-up/994/usr/lib/python3.6/asyncio/base_events.py",
line 620, in call_soon_threadsafe
    self._check_closed()
  File "/snap/conjure-up/994/usr/lib/python3.6/asyncio/base_events.py",
line 357, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

Thanks.-


2018-04-20 17:57 GMT-03:00 Cory Johns <cory.jo...@canonical.com>:

> 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 <ssebb...@gmail.com> 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/mailm
>> an/listinfo/juju
>>
>>
>


-- 
---------------------------------------------------------------
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

Reply via email to