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

NW: cfginterface GET not getting NETTYPE for s390x machine #132

Closed
archu-s opened this issue Jan 6, 2016 · 2 comments
Closed

NW: cfginterface GET not getting NETTYPE for s390x machine #132

archu-s opened this issue Jan 6, 2016 · 2 comments

Comments

@archu-s
Copy link

archu-s commented Jan 6, 2016

  1. Configured a network adapter using below curl command.
    curl -k -u root -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d {} 'https://9.152.151.67:8001/plugins/gingers390x/nwdevices/0.0.1f10/configure'
    Enter host password for user 'root':
    {
    "status":"running",
    "message":"",
    "id":"29",
    "target_uri":"/plugins/gingers390x/nwdevices/0.0.1f10/configure"
    curl -k -u root:pass4root -H "Content-Type: application/json" -H "Accept: application/json" -X GET 'https://127.0.0.1:8001/plugins/gingers390x/tasks/29'
    {
    "status":"finished",
    "message":"Successfully configured network device 0.0.1f10",
    "id":"29",
    "target_uri":"/plugins/gingers390x/nwdevices/0.0.1f10/configure"
    }

  2. ifcfg file created with content as
    DEVICE=enccw0.0.1f10
    ONBOOT=yes
    NETTYPE=qeth
    SUBCHANNELS=0.0.1f10,0.0.1f11,0.0.1f12

  3. GET is cfginterface is not giving the NETTYPE. Its a discuss call to either add TYPE as Ethernet in gingers390x while configuring network(issue configure:1987: error: package version not defined #9 in gingers390x) or GET for cfginterface should return NETTYPE for s390x architecture as s390x architecture mandates NETTYPE in ifcfg file.

curl -k -u root -H "Content-Type: application/json" -H "Accept: application/json" -X GET 'https://9.152.151.67:8001/plugins/ginger/network/cfginterfaces/enccw0.0.1f10'
Enter host password for user 'root':
{
"IPV4_INFO":{},
"BASIC_INFO":{
"DEVICE":"enccw0.0.1f10",
"ONBOOT":"yes",
"MTU":"1500"
},
"IPV6_INFO":{}
}

@danielhb danielhb added this to the Ginger2.1 milestone Jan 6, 2016
@abhiramkulkarni
Copy link
Member

Same as #131. Duplicate of Issue #131

@danielhb
Copy link
Contributor

danielhb commented Jan 7, 2016

Closing this issue as it really appears to be a duplicate.

Feel free to reopen it if the solution of #131 somehow does not fix this one

@danielhb danielhb closed this as completed Jan 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants