Skip to content

Instantly share code, notes, and snippets.

@siddheshwar-more
Last active August 29, 2015 14:05
Show Gist options
  • Save siddheshwar-more/c49557472851495b5001 to your computer and use it in GitHub Desktop.
Save siddheshwar-more/c49557472851495b5001 to your computer and use it in GitHub Desktop.
Linux Chef Extension 11.14
Steps to install chef extension version 11.14:
1> I've created Linux VM with waagent
Here's the result for x-ms-version: 2014-06-01 and 2014-04-01.
For both version we are getting error: "The maximum length of the extension private configuration is 2048 characters."
2> For 'x-ms-version: 2014-06-01'
$curl -X 'PUT' -H 'x-ms-version: 2014-06-01' -H 'Content-Type: application/xml' -E <azure_private_key.pem> -d@./role_update.xml https://management.core.windows.net//<subscription_id>/services/hostedservices/<hostedservice_name>/deployments/<deployment_name>/roles/<role_name> -v
role_update.xml ref: https://gist.github.com/siddheshwar-more/40690315f39e9dd715f9
**Output::**
* About to connect() to management.core.windows.net port 443 (#0)
* Trying 157.55.195.251... connected
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using AES128-SHA
* Server certificate:
* subject: C=US; ST=WA; L=Redmond; O=Microsoft; OU=OrganizationName; CN=ussouth2.management.core.windows.net
* start date: 2013-06-07 19:45:29 GMT
* expire date: 2015-06-07 19:45:29 GMT
* subjectAltName: management.core.windows.net matched
* issuer: DC=com; DC=microsoft; DC=corp; DC=redmond; CN=MSIT Machine Auth CA 2
* SSL certificate verify ok.
> PUT //11a11a11-1111-1111-1111-aaa11a1111/services/hostedservices/testhostedservice/deployments/testdeployment/roles/testrole HTTP/1.1
> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: management.core.windows.net
> Accept: */*
> x-ms-version: 2014-06-01
> Content-Type: application/xml
> Content-Length: 4235
> Expect: 100-continue
>
* SSLv3, TLS handshake, Hello request (0):
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Request CERT (13):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS handshake, CERT verify (15):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* Done waiting for 100-continue
< HTTP/1.1 100 Continue
< HTTP/1.1 400 Bad Request
< Cache-Control: no-cache
< Content-Length: 236
< Content-Type: application/xml; charset=utf-8
< Server: 1.0.6198.110 (rd_rdfe_stable.140729-1337) Microsoft-HTTPAPI/2.0
< x-ms-servedbyregion: ussouth2
< x-ms-request-id: 2a0ac88e36fac1de8f371e9d4deba135
< Date: Mon, 11 Aug 2014 08:10:17 GMT
* HTTP error before end of send, stop sending
<
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
<Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>BadRequest</Code><Message>The maximum length of the extension private configuration is 2048 characters.</Message></Error>
3>For 'x-ms-version: 2014-04-01'
$curl -X 'PUT' -H 'x-ms-version: 2014-04-01' -H 'Content-Type: application/xml' -E <azure_private_key.pem> -d@./role_update.xml https://management.core.windows.net//<subscription_id>/services/hostedservices/<hostedservice_name>/deployments/<deployment_name>/roles/<role_name> -v
**Output:**
* About to connect() to management.core.windows.net port 443 (#0)
* Trying 157.55.195.251... connected
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using AES128-SHA
* Server certificate:
* subject: C=US; ST=WA; L=Redmond; O=Microsoft; OU=OrganizationName; CN=ussouth2.management.core.windows.net
* start date: 2013-06-07 19:45:29 GMT
* expire date: 2015-06-07 19:45:29 GMT
* subjectAltName: management.core.windows.net matched
* issuer: DC=com; DC=microsoft; DC=corp; DC=redmond; CN=MSIT Machine Auth CA 2
* SSL certificate verify ok.
> PUT //11a11a11-1111-1111-1111-aaa11a1111/services/hostedservices/testhostedservice/deployments/testdeployment/roles/testrole HTTP/1.1
> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: management.core.windows.net
> Accept: */*
> x-ms-version: 2014-04-01
> Content-Type: application/xml
> Content-Length: 4298
> Expect: 100-continue
>
* SSLv3, TLS handshake, Hello request (0):
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Request CERT (13):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS handshake, CERT verify (15):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* Done waiting for 100-continue
< HTTP/1.1 100 Continue
< HTTP/1.1 400 Bad Request
< Cache-Control: no-cache
< Content-Length: 236
< Content-Type: application/xml; charset=utf-8
< Server: 1.0.6198.110 (rd_rdfe_stable.140729-1337) Microsoft-HTTPAPI/2.0
< x-ms-servedbyregion: ussouth2
< x-ms-request-id: 066a5c6d3a46c41a98cefad45ef2a28a
< Date: Mon, 11 Aug 2014 09:11:16 GMT
* HTTP error before end of send, stop sending
<
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
<Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>BadRequest</Code><Message>The maximum length of the extension private configuration is 2048 characters.</Message></Error>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment