-
Notifications
You must be signed in to change notification settings - Fork 284
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
Update services.py #38
Open
bms231
wants to merge
10
commits into
cloudera:master
Choose a base branch
from
bms231:patch-2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There is now a new command line option [-t|-tls] that will enable TLS for the connection to the Cloudera API. Note that enabling TLS will not automatically change the port the client connects to CM on, so -p 7183 (default CM TLS port) needs to be added to the command line for the connection to succeed. jims-air:cm_shell jhalfpenny$ ./cmps.py -H test-cluster.cloudera.com -p 7183 -t Enter Username: admin Enter Password: Welcome to the Cloudera Manager Console Select a cluster using 'show clusters' and 'use' cloudera> (cherry picked from commit 995297a)
(cherry picked from commit 33afb30)
We currently generate the epydocs from the publishing script, which means someone just looking at the repo doesn't know what command line to use. Let's add a Makefile rule to do the work. This work is based on: cloudera#15 (cherry picked from commit 6b402f8)
gramatical typo (cherry picked from commit ebea21f)
just a typo (cherry picked from commit d55932e)
(cherry picked from commit a114839)
…son' It's unclear if this is futile or not. I don't believe the library works on Python < 2.6 any more, and I'm very sure unit tests don't work on Python < 2.7. (cherry picked from commit 2d6be54)
Tests running against older CM versions had the following error: test_support_bundle45 fails with error: Unrecognized property: 'roles' (error 400) As it turns out, we have the capability to set an API version when using the python client, and the client should take care of things like this, so I've done so. To test this, I ran: $ cp ~/src/cm_api/python/src/cm_api/endpoints/cms.py ./target/env/lib/python2.7/site-packages/cm_api/endpoints/cms.py $ systest.py --agents="cdh5+parcels@nightly53-{1..4}.ent.cloudera.com" run_tests -n "test_support_bundle:SupportBundleTests.test_support_bundle_45" --disable-pre-validations --version cm53 Before my change (that I manually cherrypicked in the first hand): ApiException: Unrecognized property: 'roles' (error 400) ---------------------------------------------------------------------- Ran 1 test in 0.499s FAILED (errors=1) False After: *********************************************************************** * End test_support_bundle_45 (test_support_bundle.SupportBundleTests) * *********************************************************************** ---------------------------------------------------------------------- Ran 1 test in 128.929s I also tested against nightly (5.5) to make sure this didn't regress. It passed. $./systest.py --agents="cdh5+parcels@nightly-{1..4}.ent.cloudera.com" run_tests -n "test_support_bundle:SupportBundleTests.test_support_bundle_45" --disable-pre-validations (cherry picked from commit e58b3cc)
Add roleInstanceUrl and entityStatus for API V11
mthak
force-pushed
the
master
branch
2 times, most recently
from
May 7, 2016 00:59
f443160
to
1591b82
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add roleInstanceUrl and entityStatus for API V11