Created
March 6, 2017 23:01
-
-
Save vdice/79238967245ba4ca966e50cc3c1e9a36 to your computer and use it in GitHub Desktop.
az acs kubernetes get-credentials
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ az group create --name "${AZURE_RG_NAME}" --location "${AZURE_DC_LOCATION}" | |
{ | |
"id": "/subscriptions/7dbf3de9-32a5-4e90-b0ea-e86672956a7f/resourceGroups/vrd-rg", | |
"location": "westus", | |
"managedBy": null, | |
"name": "vrd-rg", | |
"properties": { | |
"provisioningState": "Succeeded" | |
}, | |
"tags": null | |
} | |
$ az acs create --resource-group="${AZURE_RG_NAME}" --location="${AZURE_DC_LOCATION}" --orchestrator-type=kubernetes --master-count=1 --agent-count=1 --agent-vm-size="Standard_D2_v2" --admin-username="v" --name="${AZURE_SERVICE_NAME}" --dns-prefix="vrd" --ssh-key-value=/Users/vaughndice/.ssh/azure/id_rsa.pub | |
waiting for AAD role to propagate.done | |
{ | |
"id": "/subscriptions/7dbf3de9-32a5-4e90-b0ea-e86672956a7f/resourceGroups/vrd-rg/providers/Microsoft.Resources/deployments/azurecli1488840731.83747330837", | |
"name": "azurecli1488840731.83747330837", | |
"properties": { | |
"correlationId": "82ea8ed2-e524-473a-8004-4f6657d57019", | |
"debugSetting": null, | |
"dependencies": [], | |
"mode": "Incremental", | |
"outputs": null, | |
"parameters": { | |
"clientSecret": { | |
"type": "SecureString" | |
} | |
}, | |
"parametersLink": null, | |
"providers": [ | |
{ | |
"id": null, | |
"namespace": "Microsoft.ContainerService", | |
"registrationState": null, | |
"resourceTypes": [ | |
{ | |
"aliases": null, | |
"apiVersions": null, | |
"locations": [ | |
"westus" | |
], | |
"properties": null, | |
"resourceType": "containerServices" | |
} | |
] | |
} | |
], | |
"provisioningState": "Succeeded", | |
"template": null, | |
"templateLink": null, | |
"timestamp": "2017-03-06T22:57:08.894762+00:00" | |
}, | |
"resourceGroup": "vrd-rg" | |
} | |
$ az acs kubernetes get-credentials -g $AZURE_RG_NAME -n $AZURE_SERVICE_NAME --ssh-key-file=/Users/vaughndice/.ssh/azure/id_rsa -f "${KUBECONFIG}" --verbose --debug | |
Command arguments ['acs', 'kubernetes', 'get-credentials', '-g', 'vrd-rg', '-n', 'vrd-svc', '--ssh-key-file=/Users/vaughndice/.ssh/azure/id_rsa', '-f', '/Users/vaughndice/.kubes/acs/kubeconfig'] | |
Installed command modules ['acs', 'appservice', 'batch', 'cloud', 'component', 'configure', 'container', 'documentdb', 'feedback', 'iot', 'keyvault', 'network', 'profile', 'redis', 'resource', 'role', 'sql', 'storage', 'vm'] | |
Current active cloud 'AzureCloud' | |
{'active_directory': 'https://login.microsoftonline.com', | |
'active_directory_graph_resource_id': 'https://graph.windows.net/', | |
'active_directory_resource_id': 'https://management.core.windows.net/', | |
'batch_resource_id': 'https://batch.core.windows.net/', | |
'gallery': 'https://gallery.azure.com/', | |
'management': 'https://management.core.windows.net/', | |
'resource_manager': 'https://management.azure.com/', | |
'sql_management': 'https://management.core.windows.net:8443/'} | |
{'azure_datalake_analytics_catalog_and_job_endpoint': 'azuredatalakeanalytics.net', | |
'azure_datalake_store_file_system_endpoint': 'azuredatalakestore.net', | |
'keyvault_dns': '.vault.azure.net', | |
'sql_server_hostname': '.database.windows.net', | |
'storage_endpoint': 'core.windows.net'} | |
Registered application event handler 'CommandTableParams.Loaded' at <function add_id_parameters at 0x10c2d97b8> | |
Registered application event handler 'CommandTable.Loaded' at <function add_id_parameters at 0x10c2d97b8> | |
Loaded module 'acs' in 0.280 seconds. | |
Loaded module 'appservice' in 0.057 seconds. | |
Loaded module 'batch' in 0.072 seconds. | |
Loaded module 'cloud' in 0.001 seconds. | |
Loaded module 'component' in 0.001 seconds. | |
Loaded module 'configure' in 0.001 seconds. | |
Loaded module 'container' in 0.001 seconds. | |
Loaded module 'documentdb' in 0.005 seconds. | |
Loaded module 'feedback' in 0.001 seconds. | |
Loaded module 'iot' in 0.015 seconds. | |
Loaded module 'keyvault' in 0.029 seconds. | |
Loaded module 'network' in 0.130 seconds. | |
Loaded module 'profile' in 0.001 seconds. | |
Loaded module 'redis' in 0.010 seconds. | |
Loaded module 'resource' in 0.034 seconds. | |
Loaded module 'role' in 0.002 seconds. | |
Loaded module 'sql' in 0.018 seconds. | |
Loaded module 'storage' in 0.034 seconds. | |
Loaded module 'vm' in 0.007 seconds. | |
Loaded all modules in 0.699 seconds. (note: there's always an overhead with the first module loaded) | |
Application event 'CommandTable.Loaded' with event data {'command_table': OrderedDict([('acs show', <azure.cli.core.commands.CliCommand object at 0x10b191978>), ('acs delete', <azure.cli.core.commands.CliCommand object at 0x10b1a65c0>), ('acs scale', <azure.cli.core.commands.CliCommand object at 0x10b1a6518>), ('acs list', <azure.cli.core.commands.CliCommand object at 0x10b1a65f8>), ('acs browse', <azure.cli.core.commands.CliCommand object at 0x10b1a66d8>), ('acs install-cli', <azure.cli.core.commands.CliCommand object at 0x10b1a6780>), ('acs d [...] | |
Application event 'CommandParser.Loaded' with event data {'parser': AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)} | |
Application event 'CommandTableParams.Loaded' with event data {'command_table': OrderedDict([('acs show', <azure.cli.core.commands.CliCommand object at 0x10b191978>), ('acs delete', <azure.cli.core.commands.CliCommand object at 0x10b1a65c0>), ('acs scale', <azure.cli.core.commands.CliCommand object at 0x10b1a6518>), ('acs list', <azure.cli.core.commands.CliCommand object at 0x10b1a65f8>), ('acs browse', <azure.cli.core.commands.CliCommand object at 0x10b1a66d8>), ('acs install-cli', <azure.cli.core.commands.CliCommand object at 0x10b1a6780>), ('acs d [...] | |
Application event 'CommandParser.Parsed' with event data {'command': 'acs kubernetes get-credentials', 'args': Namespace(_command_package='acs', _jmespath_query=None, _log_verbosity_debug=False, _log_verbosity_verbose=False, _output_format='json', _parser=AzCliCommandParser(prog='az acs kubernetes get-credentials', usage=None, description='Create a new Acs.', formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True), _validators=[], command='acs kubernetes get-credentials', func=<function create_command.<locals>. [...] | |
Getting management service client client_type=ComputeManagementClient | |
msrest.pipeline : Adding 'log_request' callback before event: 'request' | |
msrest.pipeline : Callback to overwrite original call: False | |
msrest.pipeline : Adding 'log_response' callback after event: 'response' | |
msrest.pipeline : Callback to overwrite original call: False | |
adal-python : 554b8c41-d018-4149-800c-6b1653005be9 - Authority:Performing instance discovery: https://login.microsoftonline.com/eeff060a-8e6c-42e1-9bb1-208e7b6c030a | |
adal-python : 554b8c41-d018-4149-800c-6b1653005be9 - Authority:Performing static instance discovery | |
adal-python : 554b8c41-d018-4149-800c-6b1653005be9 - Authority:Authority validated via static instance discovery | |
adal-python : 554b8c41-d018-4149-800c-6b1653005be9 - TokenRequest:Getting token from cache with refresh if necessary. | |
adal-python : 554b8c41-d018-4149-800c-6b1653005be9 - OAuth2Client:finding with query: {"_clientId": "04b07795-8ddb-461a-bbee-02f9e1bf7b46", "userId": "[email protected]"} | |
adal-python : 554b8c41-d018-4149-800c-6b1653005be9 - OAuth2Client:Looking for potential cache entries: | |
adal-python : 554b8c41-d018-4149-800c-6b1653005be9 - OAuth2Client:{"_clientId": "04b07795-8ddb-461a-bbee-02f9e1bf7b46", "userId": "[email protected]"} | |
adal-python : 554b8c41-d018-4149-800c-6b1653005be9 - OAuth2Client:Found 3 potential entries. | |
adal-python : 554b8c41-d018-4149-800c-6b1653005be9 - OAuth2Client:Resource specific token found. | |
adal-python : 554b8c41-d018-4149-800c-6b1653005be9 - OAuth2Client:Returning token from cache lookup, AccessTokenId: b'65UL8aiL6jLSuMlkWEBZauTUO2pyi5FIxQ6U4xsRfr4=', RefreshTokenId: b'uWL1BQ94EcHUa4/gLYAaeJ+DjLbPeKyLNGIZP5mUulk=' | |
msrest.pipeline : Configuring request: timeout=100, verify=True, cert=None | |
msrest.pipeline : Configuring redirects: allow=True, max=30 | |
msrest.pipeline : Configuring proxies: '' | |
msrest.pipeline : Evaluate proxies against ENV settings: True | |
msrest.pipeline : Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90 | |
msrest.http_logger : Request URL: 'https://management.azure.com/subscriptions/7dbf3de9-32a5-4e90-b0ea-e86672956a7f/resourceGroups/vrd-rg/providers/Microsoft.ContainerService/containerServices/vrd-svc?api-version=2017-01-31' | |
msrest.http_logger : Request method: 'GET' | |
msrest.http_logger : Request headers: | |
msrest.http_logger : 'User-Agent': 'python/3.6.0 (Darwin-15.6.0-x86_64-i386-64bit) requests/2.13.0 msrest/0.4.6 msrest_azure/0.4.7 computemanagementclient/0.33.1rc1 Azure-SDK-For-Python AZURECLI/2.0.0' | |
msrest.http_logger : 'Accept-Encoding': 'gzip, deflate' | |
msrest.http_logger : 'Accept': 'application/json' | |
msrest.http_logger : 'Connection': 'keep-alive' | |
msrest.http_logger : 'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Il9VZ3FYR190TUxkdVNKMVQ4Y2FIeFU3Y090YyIsImtpZCI6Il9VZ3FYR190TUxkdVNKMVQ4Y2FIeFU3Y090YyJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC9lZWZmMDYwYS04ZTZjLTQyZTEtOWJiMS0yMDhlN2I2YzAzMGEvIiwiaWF0IjoxNDg4ODQwMjI2LCJuYmYiOjE0ODg4NDAyMjYsImV4cCI6MTQ4ODg0NDEyNiwiYWNyIjoiMSIsImFpbyI6IkFRQUJBQUVBQUFEUk5ZUlEzZGhSU3JtLTRLLWFkcENKRUdoRmZNbDhsMzlYRnBraHVxU28yNW5ybXgxdDEwcndkWVk5MFBsZllKMVF5Tk9LbUhHd2dOMHZ2LW1XeXdfd0tjUERHcVE5THVTNXBYZTVpNlA5TmQ5d3JkT3d4TlBlN2dSQkNHcy11Z1VnQUEiLCJhbHRzZWNp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jL5eq7pvERrqL3_WeQtk_kYBK2CYktrhLG4pqBl34jOEJl9GLIN9OH-2ti3MuXh9ZwC9HFpObp2Gr_YK3zmrco91fk60-vXT1eacFd0D4O7j7L-FdEgik5hYXOEqmJKTo7VQ0wyJlahr-UImQNdmgy56trirzKXUtAMQWlJeIWQEl8HzcYmvLjaLwHFTXbUfONtfUKTqLZtB44HX3mDMuOu-CgOMkiDIE5lu9sGDQYXjZuGV4beAf_V1oRBidMjy9YgsA1WRTbCONvVfg_3S4gw' | |
msrest.http_logger : 'x-ms-client-request-id': '4c9a750c-02c0-11e7-9ff2-f45c89a0cc77' | |
msrest.http_logger : 'CommandName': 'acs kubernetes get-credentials' | |
msrest.http_logger : 'Content-Type': 'application/json; charset=utf-8' | |
msrest.http_logger : 'accept-language': 'en-US' | |
msrest.http_logger : Request body: | |
msrest.http_logger : None | |
requests.packages.urllib3.connectionpool : Starting new HTTPS connection (1): management.azure.com | |
requests.packages.urllib3.connectionpool : https://management.azure.com:443 "GET /subscriptions/7dbf3de9-32a5-4e90-b0ea-e86672956a7f/resourceGroups/vrd-rg/providers/Microsoft.ContainerService/containerServices/vrd-svc?api-version=2017-01-31 HTTP/1.1" 200 None | |
msrest.http_logger : Response status: 200 | |
msrest.http_logger : Response headers: | |
msrest.http_logger : 'Cache-Control': 'no-cache' | |
msrest.http_logger : 'Pragma': 'no-cache' | |
msrest.http_logger : 'Transfer-Encoding': 'chunked' | |
msrest.http_logger : 'Content-Type': 'application/json; charset=utf-8' | |
msrest.http_logger : 'Content-Encoding': 'gzip' | |
msrest.http_logger : 'Expires': '-1' | |
msrest.http_logger : 'Vary': 'Accept-Encoding' | |
msrest.http_logger : 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains' | |
msrest.http_logger : 'x-ms-served-by': 'b37ac43a-3860-45af-886b-469f2ea3831d_131330559308308993' | |
msrest.http_logger : 'x-ms-request-id': '87522884-93a6-4b7c-aea9-ed54db6c5412' | |
msrest.http_logger : 'Server': 'Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0' | |
msrest.http_logger : 'x-ms-ratelimit-remaining-subscription-reads': '14995' | |
msrest.http_logger : 'x-ms-correlation-request-id': 'ee5aadf2-b7f5-42a6-9644-02099145bd04' | |
msrest.http_logger : 'x-ms-routing-request-id': 'CENTRALUS:20170306T225742Z:ee5aadf2-b7f5-42a6-9644-02099145bd04' | |
msrest.http_logger : 'Date': 'Mon, 06 Mar 2017 22:57:41 GMT' | |
msrest.http_logger : Response content: | |
msrest.http_logger : Body contains chunked data. | |
paramiko.transport : starting thread (client mode): 0xdb5a9b0 | |
paramiko.transport : Local version/idstring: SSH-2.0-paramiko_2.1.2 | |
paramiko.transport : Remote version/idstring: SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu1 | |
paramiko.transport : Connected (version 2.0, client OpenSSH_7.2p2) | |
paramiko.transport : kex algos:['[email protected]', 'ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521', 'diffie-hellman-group-exchange-sha256', 'diffie-hellman-group14-sha1'] server key:['ssh-rsa', 'rsa-sha2-512', 'rsa-sha2-256', 'ecdsa-sha2-nistp256', 'ssh-ed25519'] client encrypt:['[email protected]', 'aes128-ctr', 'aes192-ctr', 'aes256-ctr', '[email protected]', '[email protected]'] server encrypt:['[email protected]', 'aes128-ctr', 'aes192-ctr', 'aes256-ctr', '[email protected]', '[email protected]'] client mac:['[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', 'hmac-sha2-256', 'hmac-sha2-512', 'hmac-sha1'] server mac:['[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', 'hmac-sha2-256', 'hmac-sha2-512', 'hmac-sha1'] client compress:['none', '[email protected]'] server compress:['none', '[email protected]'] client lang:[''] server lang:[''] kex follows?False | |
paramiko.transport : Kex agreed: diffie-hellman-group14-sha1 | |
paramiko.transport : Cipher agreed: aes128-ctr | |
paramiko.transport : MAC agreed: hmac-sha2-256 | |
paramiko.transport : Compression agreed: none | |
paramiko.transport : kex engine KexGroup14 specified hash_algo <built-in function openssl_sha1> | |
paramiko.transport : Switch to new keys ... | |
paramiko.transport : Adding ssh-rsa host key for vrd.westus.cloudapp.azure.com: b'6f381307780f17a4f537ac1874289d94' | |
paramiko.transport : Trying SSH agent key b'9b137da4d0219231f286e95b81b96b41' | |
paramiko.transport : userauth is OK | |
paramiko.transport : Authentication (publickey) failed. | |
paramiko.transport : Trying SSH agent key b'a74e8e2c4155dcb448424e0d4f07d581' | |
paramiko.transport : userauth is OK | |
paramiko.transport : Authentication (publickey) successful! | |
paramiko.transport : [chan 0] Max packet in: 32768 bytes | |
paramiko.transport : Received global request "[email protected]" | |
paramiko.transport : Rejecting "[email protected]" global request from server. | |
paramiko.transport : [chan 0] Max packet out: 32768 bytes | |
paramiko.transport : Secsh channel 0 opened. | |
paramiko.transport : [chan 0] Sesch channel 0 request ok | |
paramiko.transport : [chan 0] EOF received (0) | |
paramiko.transport : [chan 0] EOF sent (0) | |
'NoneType' object is not subscriptable | |
Traceback (most recent call last): | |
File "/Users/vaughndice/lib/azure-cli/lib/python3.6/site-packages/azure/cli/main.py", line 37, in main | |
cmd_result = APPLICATION.execute(args) | |
File "/Users/vaughndice/lib/azure-cli/lib/python3.6/site-packages/azure/cli/core/application.py", line 157, in execute | |
result = expanded_arg.func(params) | |
File "/Users/vaughndice/lib/azure-cli/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 343, in _execute_command | |
raise ex | |
File "/Users/vaughndice/lib/azure-cli/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 338, in _execute_command | |
result = op(client, **kwargs) if client else op(**kwargs) | |
File "/Users/vaughndice/lib/azure-cli/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py", line 590, in k8s_get_credentials | |
_k8s_get_credentials_internal(name, acs_info, path, ssh_key_file) | |
File "/Users/vaughndice/lib/azure-cli/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py", line 613, in _k8s_get_credentials_internal | |
merge_kubernetes_configurations(path, path_candidate) | |
File "/Users/vaughndice/lib/azure-cli/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py", line 627, in merge_kubernetes_configurations | |
existing['clusters'].extend(addition['clusters']) | |
TypeError: 'NoneType' object is not subscriptable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment