Nie Kun created BROOKLYN-441:
--------------------------------
Summary: OpenStack deploy vm fails: get wrong loginUser
Key: BROOKLYN-441
URL: https://issues.apache.org/jira/browse/BROOKLYN-441
Project: Brooklyn
Issue Type: Bug
Affects Versions: 0.10.0
Environment: brooklyn v0.10 openstack liberty
Reporter: Nie Kun
I am trying to launch a instance on openstack via brooklyn
My yaml file was like below:
name: test
location:
jclouds:openstack-mitaka-nova:
endpoint: https://10.10.0.10:5000/v2.0
identity: SCADA on Cloud:[email protected]
credential: My9876&
services:
- type: brooklyn.entity.basic.EmptySoftwareProcess
name: test1
provisioning.properties:
osFamily: CentOS
osVersionRegex: 7
hardwareId: RegionOne/3
imageId: RegionOne/a9eab8c3-8e3c-4e68-8af2-02e9b5915a58
loginUser: centos
loginUser.privateKeyFile: /home/ubuntu/.ssh/id_rsa
templateOptions:
networks: ["3f4ca47b-6e04-449b-a44f-7cbc5696084d"]
securityGroups: ["default", "SSH"]
generateKeyPair: false
keyPairName: niekun_openstack_de
I specify the loginUser: centos in the yaml file
But from the log file I saw that brooklyn still trying ssh to the instance by
using ubuntu user.
I don't know why this happened. It seems like the loginUser: centos does't work.
Below are the brooklyn's log
2017-02-21 09:07:44,202 DEBUG o.a.b.l.ssh.SshMachineLocation
[brooklyn-execmanager-dNzOCrw1-174]:
SshMachineLocation[SshMachineLocation:yndl:[email protected]/192.168.1.118:22(id=yndlps9c9z)]
invalidating all entries in ssh pool cache. Final stats:
CacheStats{hitCount=0, missCount=1, loadSuccessCount=1, loadExceptionCount=0,
totalLoadTime=111485, evictionCount=0}
I think this is a bug
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)