-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot complete login due to an incorrect user name or password #49
Comments
You need single quotes around your password to prevent shell interpolation.
…________________________________
From: abhilash07 <notifications@github.com>
Sent: Friday, January 5, 2018 12:42:59 AM
To: cloudfoundry-incubator/bosh-vsphere-cpi-release
Cc: Subscribed
Subject: [cloudfoundry-incubator/bosh-vsphere-cpi-release] Cannot complete login due to an incorrect user name or password (#49)
Hi i am trying to deploy microbosh on vsphere 6.5 but i encountering below error
creating stemcell (bosh-vsphere-esxi-ubuntu-trusty-go_agent 3468.13):
CPI 'create_stemcell' method responded with error: CmdError{"type":"Unknown","message":"Cannot complete login due to an incorrect user name or password.","ok_to_retry":false
My Bosh Deatils are follows
bosh create-env /home/ubuntu/workspace/bosh-deployment/bosh.yml
--state=state.json
--vars-store=creds.yml
-o /home/ubuntu/workspace/bosh-deployment/vsphere/cpi.yml
-v director_name=bosh
-v internal_cidr=192.168.203.0/24
-v internal_gw=192.168.203.1
-v internal_ip=192.168.203.18
-v network_name="SBP Network"
-v vcenter_dc=cloudservice
-v vcenter_ds=datastore1
-v vcenter_ip=192.168.203.20
-v vcenter_user=administrator@vsphere.local<mailto:administrator@vsphere.local>
-v vcenter_password=$D$32@bhi07-
-v vcenter_templates=bosh-templates
-v vcenter_vms=bosh-vms
-v vcenter_disks=bosh-disks
-v vcenter_cluster=cluster1
but when i try to login from vSphere Web Client single sign on dashboard i am successfully signing in with above username and password.
So i checked the Events in vSphere Web Client dashboard i see the below error
[screen shot 2018-01-05 at 5 36 33 pm 2]<https://urldefense.proofpoint.com/v2/url?u=https-3A__user-2Dimages.githubusercontent.com_10971841_34601414-2D43137f3c-2Df23f-2D11e7-2D90a3-2D79af41419146.png&d=DwMCaQ&c=uilaK90D4TOVoH58JNXRgQ&r=bi601dN1HJ9j804bhSw1xitbodpczsm1txuBpaBZB-g&m=4zLqw5ddqLlMBo41nhgCfh1Oy6hyUmyJ0WkP-8ovwuY&s=g6NVaKWn6ks-RWLHjn1rXRAwy8xNRetApxmZ8YCsSjo&e=>
[screen shot 2018-01-05 at 5 33 13 pm 2]<https://urldefense.proofpoint.com/v2/url?u=https-3A__user-2Dimages.githubusercontent.com_10971841_34601428-2D546ebfee-2Df23f-2D11e7-2D84e4-2D118a3de62906.png&d=DwMCaQ&c=uilaK90D4TOVoH58JNXRgQ&r=bi601dN1HJ9j804bhSw1xitbodpczsm1txuBpaBZB-g&m=4zLqw5ddqLlMBo41nhgCfh1Oy6hyUmyJ0WkP-8ovwuY&s=FKL8NjLFKZpFVUbAis3U7TLtU0inUFoxXT4-PCJYWcw&e=>
Should i want to configure and enable Active Directory ?
vSphere Web Client Active Directory
[screen shot 2018-01-05 at 5 39 29 pm 2]<https://urldefense.proofpoint.com/v2/url?u=https-3A__user-2Dimages.githubusercontent.com_10971841_34601504-2D9e84c9b6-2Df23f-2D11e7-2D8b81-2D86d3f8e7b687.png&d=DwMCaQ&c=uilaK90D4TOVoH58JNXRgQ&r=bi601dN1HJ9j804bhSw1xitbodpczsm1txuBpaBZB-g&m=4zLqw5ddqLlMBo41nhgCfh1Oy6hyUmyJ0WkP-8ovwuY&s=-MaMkc3f8RBHlZzVH9FNowHoVmFHmnfkkBfHHk23JyU&e=>
vSphere ESXi Active Directory
[screen shot 2018-01-05 at 5 39 43 pm 2]<https://urldefense.proofpoint.com/v2/url?u=https-3A__user-2Dimages.githubusercontent.com_10971841_34601540-2Dc8ab039a-2Df23f-2D11e7-2D9956-2D9f079d72be81.png&d=DwMCaQ&c=uilaK90D4TOVoH58JNXRgQ&r=bi601dN1HJ9j804bhSw1xitbodpczsm1txuBpaBZB-g&m=4zLqw5ddqLlMBo41nhgCfh1Oy6hyUmyJ0WkP-8ovwuY&s=MZkdXcktTNIXnxWwih4JY3tvFE2qD3NTBAGheLB3jYk&e=>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_cloudfoundry-2Dincubator_bosh-2Dvsphere-2Dcpi-2Drelease_issues_49&d=DwMCaQ&c=uilaK90D4TOVoH58JNXRgQ&r=bi601dN1HJ9j804bhSw1xitbodpczsm1txuBpaBZB-g&m=4zLqw5ddqLlMBo41nhgCfh1Oy6hyUmyJ0WkP-8ovwuY&s=8q9jAbbwpeCUHdZaP5VsTtiq8ALtCRAH68vat2Tas1s&e=>, or mute the thread<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AACkxZKstLlDugbzcOC-5FYnDq5Shaiin5ks5tHeCTgaJpZM4RULCK&d=DwMCaQ&c=uilaK90D4TOVoH58JNXRgQ&r=bi601dN1HJ9j804bhSw1xitbodpczsm1txuBpaBZB-g&m=4zLqw5ddqLlMBo41nhgCfh1Oy6hyUmyJ0WkP-8ovwuY&s=RxrFXw96ofxx6GF43escjbTdQE71C_IBd8AfgUN-JdA&e=>.
|
hi @ktchen14 thanks for your response I exucete like below but the same error is coming bosh create-env /home/ubuntu/workspace/bosh-deployment/bosh.yml But i have one question, as your comment states this vsphere-cpi tries to connect vcenter shell rather than vsphere web client ui ? bosh create-env /home/ubuntu/workspace/bosh-deployment/bosh.yml One more question is this error (Cannot complete login due to an incorrect user name or password ) is no way related to vSphere Active directory ? Thanks in Advance |
The command looks fine. Can you check if you can ssh to your vSphere environment using the above credentials? I don't think it's an active directory issue. As long as local login is enabled, which in your case, it seems like it is, as you can login through the UI. |
Single quotes (not double quotes) are necessary around the passwords to prevent interpolation of the string as a bash variable.
From: abhilash07 <notifications@github.com>
Reply-To: cloudfoundry-incubator/bosh-vsphere-cpi-release <reply@reply.github.com>
Date: Saturday, January 6, 2018 at 2:18 AM
To: cloudfoundry-incubator/bosh-vsphere-cpi-release <bosh-vsphere-cpi-release@noreply.github.com>
Cc: Kaiting Chen <kaitingc@vmware.com>, Mention <mention@noreply.github.com>
Subject: Re: [cloudfoundry-incubator/bosh-vsphere-cpi-release] Cannot complete login due to an incorrect user name or password (#49)
hi @ktchen14<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_ktchen14&d=DwMFaQ&c=uilaK90D4TOVoH58JNXRgQ&r=bi601dN1HJ9j804bhSw1xitbodpczsm1txuBpaBZB-g&m=qJgSgPIEcGU0Vd-h2uS4MIIO6i__7mXyFruIoKv4-4A&s=3BtGT6ow3Xlul9-Cr83Mk27LHNTnapDh6nfSynxq7uc&e=> thanks for your response
bosh create-env /home/ubuntu/workspace/bosh-deployment/bosh.yml
--state=state.json
--vars-store=creds.yml
-o /home/ubuntu/workspace/bosh-deployment/vsphere/cpi.yml
-v director_name=bosh
-v internal_cidr=192.168.203.0/24
-v internal_gw=192.168.203.1
-v internal_ip=192.168.203.18
-v network_name="SBP Network"
-v vcenter_dc=cloudservice
-v vcenter_ds=datastore1
-v vcenter_ip=192.168.203.20
-v vcenter_user=administrator@vsphere.local<mailto:administrator@vsphere.local>
-v vcenter_password="$D$32@bhi07-"
-v vcenter_templates=bosh-templates
-v vcenter_vms=bosh-vms
-v vcenter_disks=bosh-disks
-v vcenter_cluster=cluster1
But i have one question, as your comment states this vsphere-cpi tries to connect vcenter shell rather than vsphere web client ui ?
So then i should execute like this ?
bosh create-env /home/ubuntu/workspace/bosh-deployment/bosh.yml
--state=state.json
--vars-store=creds.yml
-o /home/ubuntu/workspace/bosh-deployment/vsphere/cpi.yml
-v director_name=bosh
-v internal_cidr=192.168.203.0/24
-v internal_gw=192.168.203.1
-v internal_ip=192.168.203.18
-v network_name="SBP Network"
-v vcenter_dc=cloudservice
-v vcenter_ds=datastore1
-v vcenter_ip=192.168.203.20
-v vcenter_user=root
-v vcenter_password="$D$32@bhi07-"
-v vcenter_templates=bosh-templates
-v vcenter_vms=bosh-vms
-v vcenter_disks=bosh-disks
-v vcenter_cluster=cluster1
One more question is this error (Cannot complete login due to an incorrect user name or password ) is no way related to vSphere Active directory ?
Thanks in Advance
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_cloudfoundry-2Dincubator_bosh-2Dvsphere-2Dcpi-2Drelease_issues_49-23issuecomment-2D355737483&d=DwMFaQ&c=uilaK90D4TOVoH58JNXRgQ&r=bi601dN1HJ9j804bhSw1xitbodpczsm1txuBpaBZB-g&m=qJgSgPIEcGU0Vd-h2uS4MIIO6i__7mXyFruIoKv4-4A&s=zDXZgkiEObzfoYA3ovJ-T7SS-9WFm1qixtaUfgToY9I&e=>, or mute the thread<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AACkxWRXD63lXlufb5CfvQUKozNK3ZM5ks5tH0hTgaJpZM4RULCK&d=DwMFaQ&c=uilaK90D4TOVoH58JNXRgQ&r=bi601dN1HJ9j804bhSw1xitbodpczsm1txuBpaBZB-g&m=qJgSgPIEcGU0Vd-h2uS4MIIO6i__7mXyFruIoKv4-4A&s=_q10JgHlBl2CcYf9BJRJKkQSggY6iz108vadPdPLl3s&e=>.
|
Hi @ktchen14 and @yeshwantbabar thanks for your information i solve the error |
hmm seeing the same issue, despite already having my password w/ special chars in single quotes. have a resource pool so very slight difference in my inputs. latest vsphere cpi from bosh-deployment repo. same creds work fine manually. bosh.io docs a little light on detail (will PR if i figure it out and some sort of doc addition would help...may be something in my environment). $ bosh -v $ bosh create-env bosh.yml -o cpi.yml -o resource-pool.yml -l vars.yml --vars-store creds.yml Started validating Started installing CPI Starting registry... Finished (00:00:00) creating stemcell (bosh-vsphere-esxi-ubuntu-trusty-go_agent 3468.21): Exit code 1 $ cat vars.ymldirector_name: bosh01 all of the vcenter_* names match up to what i see in the UI. guessing there must be something simple i am missing! :-) |
@deadlysyn please try this way network_name: "VM Network" |
thanks for the tip. same issue...started with that with Administrator just being my last permutation. was desperate so trying all sorts of: DOMAIN\Administrator all seem to fail...with or without quotes (i figured yaml would want a string with @ quoted but 'administrator@vsphere.local' didn't work either). someone mentioned elsewhere to avoid special chars all together (though above seems to show it working fine, my pass has a "!" in it if that is special). unfortunately there's a policy in effect requiring specials chars so i will have to try working around this tomorrow with more help to confirm/deny as the root cause. |
@deadlysyn can you please upload screen short of error message in vSphere Web client events |
Hi i am trying to deploy microbosh on vsphere 6.5 but i encountering below error
creating stemcell (bosh-vsphere-esxi-ubuntu-trusty-go_agent 3468.13):
CPI 'create_stemcell' method responded with error: CmdError{"type":"Unknown","message":"Cannot complete login due to an incorrect user name or password.","ok_to_retry":false
My Bosh Deatils are follows
bosh create-env /home/ubuntu/workspace/bosh-deployment/bosh.yml
--state=state.json
--vars-store=creds.yml
-o /home/ubuntu/workspace/bosh-deployment/vsphere/cpi.yml
-v director_name=bosh
-v internal_cidr=192.168.203.0/24
-v internal_gw=192.168.203.1
-v internal_ip=192.168.203.18
-v network_name="SBP Network"
-v vcenter_dc=cloudservice
-v vcenter_ds=datastore1
-v vcenter_ip=192.168.203.20
-v vcenter_user=administrator@vsphere.local
-v vcenter_password=$D$32@bhi07-
-v vcenter_templates=bosh-templates
-v vcenter_vms=bosh-vms
-v vcenter_disks=bosh-disks
-v vcenter_cluster=cluster1
but when i try to login from vSphere Web Client single sign on dashboard i am successfully signing in with above username and password.
So i checked the Events in vSphere Web Client dashboard i see the below error
Should i want to configure and enable Active Directory ?
vSphere Web Client Active Directory
vSphere ESXi Active Directory
Thanks in Advance!!!
The text was updated successfully, but these errors were encountered: