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

how to ensure the compatibility between xcat version and xcat-inventory schema version #67

Closed
immarvin opened this issue Jul 10, 2018 · 5 comments
Assignees
Labels
Milestone

Comments

@immarvin
Copy link
Contributor

how to ensure the compatibility between xcat version and xcat-inventory schema version

[root@briggs01 xcat_clusters]# xcat-inventory import -f ./osimage/rhels/ist.redhat.perf.custom.netboot.DL.osimage.yaml
Importing object: ist.redhat.perf.custom.netboot.DL
Error: no column 'environvar' in table osimage, might caused by mismatch between schema version and xCAT version!
@immarvin
Copy link
Contributor Author

PR #71

@zet809
Copy link

zet809 commented Aug 14, 2018

The fix looks like this now:

# cat ist.redhat-alt.install.DF.yaml | egrep "schema_version|Version"
    "schema_version": "1.0"
#Version 2.14.3 (git commit d1bf861f7bae8e322a8d5b33f0729d5c3fe0a2b7, built Mon Aug 13 06:15:45 EDT 2018)
# xcat-inventory import -t osimage -f ist.redhat-alt.install.DF.yaml
Error: invalid schema /opt/xcat/lib/python/xcclient/inventory/schema/1.0/osimage.yaml: This schema is valid for xCAT releases >=2.14.2, current xCAT version is 2.14

@zet809
Copy link

zet809 commented Aug 14, 2018

The result to import an osimage into xcat2.14.3, the osiamge is export from xcat2.14.

# diff rhels8.0-ppc64le-statelite-compute.yaml rhels8.0-ppc64le-statelite-compute-2.14.3.yaml
32c32
<     "schema_version": "0.2"
---
>     "schema_version": "1.0"
34c34
< #Version 2.14 (git commit 8c159330c2bedace4bb101945823ba51d9cbdc25, built Thu Apr 19 07:15:45 EDT 2018)
---
> #Version 2.14.3 (git commit d1bf861f7bae8e322a8d5b33f0729d5c3fe0a2b7, built Mon Aug 13 06:15:45 EDT 2018)

@zet809
Copy link

zet809 commented Aug 14, 2018

As you can see below, the performance is bad even export/import 1 osimage.

# time xcat-inventory import -t osimage -f rhels8.0-ppc64le-statelite-compute.yaml
Importing object: rhels8.0-ppc64le-statelite-compute
Inventory import successfully!

real	0m3.010s
user	0m2.810s
sys	0m0.054s
# lsdef -t osimage rhels8.0-ppc64le-statelite-compute
Object name: rhels8.0-ppc64le-statelite-compute
    exlist=/opt/xcat/share/xcat/netboot/rh/compute.exlist
    imagetype=linux
    osarch=ppc64le
    osdistroname=rhels8.0-ppc64le
    osname=Linux
    osvers=rhels8.0
    otherpkgdir=/install/post/otherpkgs/rhels8.0/ppc64le
    pkgdir=/install/rhels8.0/ppc64le
    pkglist=/opt/xcat/share/xcat/netboot/rh/compute.pkglist
    profile=compute
    provmethod=statelite
    rootimgdir=/install/netboot/rhels8.0/ppc64le/compute
# time xcat-inventory export -t osimage -o rhels8.0-ppc64le-statelite-compute -f ./rhels8.0-ppc64le-statelite-compute-2.14.3.yaml
The inventory data has been dumped to ./rhels8.0-ppc64le-statelite-compute.yaml

real	0m6.638s
user	0m6.340s
sys	0m0.102s

@zet809
Copy link

zet809 commented Aug 14, 2018

The issue is verified, so close

@zet809 zet809 closed this as completed Aug 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants