这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Mar 4, 2021. It is now read-only.

Conversation

@DanielXiao
Copy link

There is no similar ASG concept in vSphere as in AWS and auto grouping all VMs by parrent folder name makes over-chaos to the whole vSphere. Specifying all VMs under the same absolute folder path as a group is a more precise way to inject faulty into target applications. So I add a VsphereChaosCrawler to crawl only VMs under target folder.

…g all VMs by parrent folder name makes too much chaos. Specifying all VMs under the same absolute folder path as a group is a more precise way to inject faulty into target applications. So I add a VsphereChaosCrawler to crawl only VMs under target folder.
@cloudbees-pull-request-builder

SimianArmy-pull-requests #146 SUCCESS
This pull request looks good

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like all this logic can be replaced with:

if (privateKey == null) {
       privateKey = config.getStrOrElse("simianarmy.chaos.ssh.password", null);
}
if (privateKey != null) {
       this.sshCredentials = LoginCredentials.builder().user(sshUser).privateKey(privateKey).build();
}

or am I missing a case ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic is to use password instead of private key to build ssh credential When user doesn't specify simianarmy.chaos.ssh.key. Do you mean LoginCredentials.builder().user(sshUser).password(privateKey).build()? Because simianarmy.chaos.ssh.password is password so we can only build LoginCredentials like this LoginCredentials.builder().user(sshUser).password(privateKey).build().

@alfasin
Copy link
Contributor

alfasin commented Oct 8, 2014

Hi YiFeng

First, thanks for your contribution!

Don't mean to be nitpicking but please:

  1. declare the class members at the top of the class (see class:
    VSphereGroup for example)
  2. change names like parrent --> parent (unless you meant something else)
    and groupNme --> groupName (nobody will hold an extra keystroke against
    you)
  3. add some more documentation to your code - it's not alway trivial to
    follow the logic (see: describeVirtualMachines(String absolutePath) for
    example). More documentation is required in the configuration files as
    well: what is "" ?
  4. add unit-tests and try to cover at least 70% of the new code + code that
    has changed.

All in all the code looks good - please add the minor improvement specified
above and I'll merge it.

Thanks again,
Nir

On Sun, Oct 5, 2014 at 5:41 AM, CloudBees pull request builder plugin <
notifications@github.com> wrote:

SimianArmy-pull-requests #146
https://netflixoss.ci.cloudbees.com/job/SimianArmy-pull-requests/146/
SUCCESS
This pull request looks good


Reply to this email directly or view it on GitHub
#139 (comment).

@DanielXiao
Copy link
Author

Hi, Nir

I really appreciate your careful review. Sorry for my the spelling mistake on the variable names. I will change code according to above 4 comments.

Thanks a lot!
Daniel

1. Declare the class members at the top of the class.
2. Correct spelling mistakes.
3. Add more documentations.
4. Add unit tests
@cloudbees-pull-request-builder

SimianArmy-pull-requests #147 FAILURE
Looks like there's a problem with this pull request

@cloudbees-pull-request-builder

SimianArmy-pull-requests #148 FAILURE
Looks like there's a problem with this pull request

@cloudbees-pull-request-builder

SimianArmy-pull-requests #149 FAILURE
Looks like there's a problem with this pull request

@DanielXiao
Copy link
Author

Hi, Nir

I recorded a demo of my patch and posted it to http://youtu.be/AnSrpk_thDE. Hope you don't mind it.
I just renamed the package name of VSphereChaosCrawler.java on IntelliJ IDEA and below error happens in the jenkins build. I checked that the class name and file name are the same and it works well in my local environment. Could you please take a look it and give me some hints?

class VSphereChaosCrawler is public, should be declared in a file named VSphereChaosCrawler.java
public class VSphereChaosCrawler implements ChaosCrawler {
^
1 error
FAILED

FAILURE: Build failed with an exception.

Thanks again
Yifeng

@cloudbees-pull-request-builder

SimianArmy-pull-requests #150 SUCCESS
This pull request looks good

@DanielXiao
Copy link
Author

Hi, Nir

I have fixed all the problems you pointed above. Please feel free to give your comments .

Thanks.
Yifeng

@DanielXiao
Copy link
Author

Hi, Nir

Any comments on my latest update?  Are you going to merge it?

Thanks again
Yifeng

@alfasin
Copy link
Contributor

alfasin commented Oct 21, 2014

Hi Daniel,

Sorry but I'm no longer one of the maintainers of the Simian Army.

Regards,
Nir

On Thu, Oct 16, 2014 at 10:19 PM, Yifeng Xiao notifications@github.com
wrote:

Hi, Nir

Any comments on my latest update? Are you going to merge it?

Thanks again
Yifeng


Reply to this email directly or view it on GitHub
#139 (comment).

@ebukoski
Copy link
Contributor

Because of conflicts I tried a manual merge but there are compile errors.

Please let us know if there is interest in getting this PR Merged, otherwise I will Close it.

@ebukoski ebukoski closed this Sep 8, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants