Giter VIP home page Giter VIP logo

Comments (5)

bingosummer avatar bingosummer commented on August 17, 2024

Hi @cbrianball . Thanks for your feedback.

The initdevbox step threw a WindowsAzureError when it tried to create a container bosh in your storage account.
Could you check your settings for the template, and re-deploy it?
If it does not work for you, please feel free to let us know.

from bosh-azure-cpi-release.

cbrianball avatar cbrianball commented on August 17, 2024

I had tried 2 - 3 times and kept getting the same error. I tried again, but since you pointed out the storage account, I used a different name (this time with all lower case) and it worked.

Clearly I failed to read the description for the storage account name on the page I referenced where it states lower case letters and numbers only.

So to me it seems that Azure should have returned an error when the storage account create request was issued and it shouldn't have even made it as far as it did.

Thanks, I'll close this issue.

from bosh-azure-cpi-release.

bingosummer avatar bingosummer commented on August 17, 2024

Totally agree with you, @cbrianball . I will try to figure out why Azure does not return an error when the storage account name is invalid. Will let you know the result.

Thanks.

from bosh-azure-cpi-release.

vcherukuri avatar vcherukuri commented on August 17, 2024

I tried deploying pivotal cloud foundry on Azure. After deploying few resources , it failed with an error. I dont see a problem with Storage account as it is created properly.
STATUSConflict
PROVISIONING STATEFailed
TIMESTAMP6/24/2016, 4:24:48 PM
DURATIONPT29M54.6658648S
TYPEMicrosoft.Compute/virtualMachines/extensions
RESOURCE ID/subscriptions/7eab3893-bd71-4690-84a5-47624df0b0e5/resourceGroups/PivotalCloudFoundry/providers/Microsoft.Compute/virtualMachines/myjumpboxnpvfpqoisk5zk/extensions/initdevbox
STATUSMESSAGE{
"status": "Failed",
"error": {
"code": "ResourceDeploymentFailure",
"message": "The resource operation completed with terminal provisioning state 'Failed'.",
"details": [
{
"code": "VMExtensionProvisioningError",
"message": "VM has reported a failure when processing extension 'initdevbox'. Error message: "Script returned an error.\n---stdout---\nDownload complete.\nCurrent working dir : /var/lib/waagent/Microsoft.OSTCExtensions.CustomScriptForLinux-1.4.1.0\nSys.Path: ['/usr/share/python-wheels/setuptools-3.3-py2.py3-none-any.whl', '/usr/share/python-wheels/requests-2.2.1-py2.py3-none-any.whl', '/usr/share/python-wheels/six-1.5.2-py2.py3-none-any.whl', '/usr/share/python-wheels/urllib3-1.7.1-py2.py3-none-any.whl', '/usr/share/python-wheels/colorama-0.2.5-py2.py3-none-any.whl', '/usr/share/python-wheels/pip-1.5.4-py2.py3-none-any.whl', '/usr/share/python-wheels/chardet-2.2.1-py2.py3-none-any.whl', '/usr/share/python-wheels/html5lib-0.999-py2.py3-none-any.whl', '/usr/share/python-wheels/distlib-0.1.8-py2.py3-none-any.whl', '/var/lib/waagent/Microsoft.OSTCExtensions.CustomScriptForLinux-1.4.1.0/download/0', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '']\n\n---errout---\n\rExtracting templates from packages: 32%\rExtracting templates from packages: 64%\rExtracting templates from packages: 96%\rExtracting templates from packages: 100%\nTraceback (most recent call last):\n File "./bootstrap.py", line 159, in \n check_quota(subscription_id, tenant, client_id, client_secret, location, numofcores)\n File "./bootstrap.py", line 52, in check_quota\n usage_paged=compute_client.usage.list(location).usages\n File "/var/lib/waagent/Microsoft.OSTCExtensions.CustomScriptForLinux-1.4.1.0/azure/mgmt/compute/computemanagement.py", line 3889, in list\n raise error\nazure.common.AzureHttpError: {"error":{"code":"AuthorizationFailed","message":"The client '1f5db171-dcf1-4d63-9fed-131e165ecefa' with object id '1f5db171-dcf1-4d63-9fed-131e165ecefa' does not have authorization to perform action 'Microsoft.Compute/locations/usages/read' over scope '/subscriptions/7eab3893-bd71-4690-84a5-47624df0b0e5'."}}\n\n"."
}
]
}
}
RESOURCEmyjumpboxnpvfpqoisk5zk/initdevbox

Thanks in advance

from bosh-azure-cpi-release.

bingosummer avatar bingosummer commented on August 17, 2024

@vcherukuri
Your issue is about the authorization of your service principal. You need to check the authorization. Do you assign the right role to your service principal?

{\"error\":{\"code\":\"AuthorizationFailed\",\"message\":\"The client '1f5db171-dcf1-4d63-9fed-131e165ecefa' with object id '1f5db171-dcf1-4d63-9fed-131e165ecefa' does not have authorization to perform action 'Microsoft.Compute/locations/usages/read' over scope '/subscriptions/7eab3893-bd71-4690-84a5-47624df0b0e5'.\"}

from bosh-azure-cpi-release.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.