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

Group shows up as node when exporting #111

Open
whowutwut opened this issue Sep 4, 2018 · 1 comment
Open

Group shows up as node when exporting #111

whowutwut opened this issue Sep 4, 2018 · 1 comment

Comments

@whowutwut
Copy link
Member

How come when I create a group:

[root@fs2vm111 ~]# lsdef -t group cn_regex
Object name: cn_regex
    grouptype=static
    ip=|cn(\d+)|172.10.(($1-1)/20+1).(($1-1)%20+1)|
    members=

It shows up as a node?

[root@fs2vm111 ~]# xcat-inventory export -t group -o cn_regex --format=yaml
Error: Invalid object type: "group"

Then when I exported all, i saw it..... under a node object....

[root@fs2vm111 ~]# xcat-inventory export -t node -o cn_regex
node:
  cn_regex:
    device_type: server
    network_info:
      primarynic:
        ip: '|cn(\d+)|172.10.(($1-1)/20+1).(($1-1)%20+1)|'
    obj_info:
      grouptype: static
    obj_type: group
    role: compute
schema_version: '1.0'

A little confusing....

@immarvin
Copy link
Contributor

immarvin commented Sep 5, 2018

    obj_info:
      grouptype: static
    obj_type: group

shows it is a group object
currently, node and group object are all node object, will take a look at how to differentiate

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