Skip to content
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

query_status reports 'ipConfig' KeyError after network editing change #191

Open
ajblum opened this issue Dec 8, 2017 · 2 comments
Open
Assignees

Comments

@ajblum
Copy link
Contributor

ajblum commented Dec 8, 2017

Since the network editing change, query_status reports the following failure:

/apps/hack-the-stack-2016-W39_0> query_status 
Running command line 'query_status'.

App VMs in region US-Central-1 will auto-stop in 88:39 min at 11:56:02

Traceback (most recent call last):
  File "/usr/bin/ravshello", line 319, in <module>
    main()
  File "/usr/bin/ravshello", line 314, in main
    user_interface.main()
  File "/usr/share/ravshello/modules/user_interface.py", line 214, in main
    shell.run_interactive(exit_on_error=rOpt.enableDebugging)
  File "/usr/share/ravshello/modules/configshell_fb/shell.py", line 905, in run_interactive
    self._cli_loop()
  File "/usr/share/ravshello/modules/configshell_fb/shell.py", line 734, in _cli_loop
    self.run_cmdline(cmdline)
  File "/usr/share/ravshello/modules/configshell_fb/shell.py", line 848, in run_cmdline
    self._execute_command(path, command, pparams, kparams)
  File "/usr/share/ravshello/modules/configshell_fb/shell.py", line 823, in _execute_command
    result = target.execute_command(command, pparams, kparams)
  File "/usr/share/ravshello/modules/configshell_fb/node.py", line 1406, in execute_command
    return method(*pparams, **kparams)
  File "/usr/share/ravshello/modules/user_interface.py", line 2161, in ui_command_query_status
    self.query_status(app)
  File "/usr/share/ravshello/modules/user_interface.py", line 2197, in query_status
    out = get_vm_access_details(vm)[0]
  File "/usr/share/ravshello/modules/user_interface.py", line 290, in get_vm_access_details
    if 'autoIpConfig' in nic['ipConfig']:
KeyError: 'ipConfig'
@ajblum
Copy link
Contributor Author

ajblum commented Dec 8, 2017

[[email protected] ~]# ravshello -V
ravshello v1.35.0 last mod 2017/09/26

@ajblum
Copy link
Contributor Author

ajblum commented Dec 8, 2017

printing the nic json object just before 290 for this app revels:

{
    "device": {
        "generatedMac": "2c:c2:60:36:d6:e9",
        "index": 0,
        "mac": "2c:c2:60:36:d6:e9",
        "deviceType": "virtio",
        "useAutomaticMac": false
    },
    "vlanInterfaces": [
        {
            "vlanId": 100,
            "id": 3291756059306500096,
            "ipConfigurations": [
                {
                    "needElasticIp": false,
                    "hasPublicIp": false,
                    "publicIp": "35.193.120.119",
                    "externalAccessState": "CONDITIONAL_PUBLIC_IP",
                    "staticIpConfig": {
                        "ip": "10.20.20.25",
                        "mask": "255.255.255.0"
                    },
                    "id": 7130576188342272
                }
            ]
        },
        {
            "id": 5124028201519261696,
            "vlanId": 201
        },
        {
            "id": 3796321913275383808,
            "vlanId": 202
        },
        {
            "id": 5505263906035484672,
            "vlanId": 203
        },
        {
            "id": 9087184809504028672,
            "vlanId": 204
        }
    ],
    "id": 4304148208025600,
    "name": "eth0"
}

@ryran ryran self-assigned this May 22, 2018
This was referenced May 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants