Created
April 2, 2013 17:31
-
-
Save morgabra/5294277 to your computer and use it in GitHub Desktop.
Finding the ck node ID
This file contains hidden or 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
0) Get the latest version of the update script from https://github.com/racker/rackspace_cloudmonitoring_migration_tool | |
1) Start a python shell with the migration script | |
~$ python migrate.py -c config.json shell | |
1) Print our your nodes | |
Python 2.7.2 (default, Jun 20 2012, 16:23:33) | |
>>> import pprint | |
>>> pp = pprint.PrettyPrinter(indent=2) | |
>>> pp.pprint(ck.conn.nodes.read()) | |
{ u'global_count': 3, | |
u'items': [ { u'agent_name': u'some_name', | |
u'agent_status': u'connected', | |
u'color': None, | |
u'details': { }, | |
u'id': u'n093fa265a', | |
u'ipaddress': u'50.5.5.1', | |
u'is_active': True, | |
u'name': u'some_name', | |
u'private_ips': [], | |
u'provider': { ... }, | |
u'public_ips': [u'50.5.5.1'], | |
u'status': { u'code': 2, u'description': u'running'}, | |
u'tags': []}, | |
{ ... another node ... }, | |
{ ... another node ... }], | |
u'npp': 1000, | |
u'page': 1} | |
3) Find the 'id' of the node you want, it will start with the letter 'n': | |
u'id': u'n093fa265a' | |
4) Add this id to the metadata of the matching entity manually with https://ui-labs.cloudmonitoring.rackspace.com/ | |
It will look like http://imgur.com/bWuCOib in the interface if done correctly | |
5) Rerun the migration |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment