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

GITTAG may not work well when we are tracking the latest commit and the import date does not match a specific tag that we care about #132

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

Comments

@whowutwut
Copy link
Member

whowutwut commented Sep 25, 2018

This {{GITTAG}} may not be work well in a real environment when we are tracking master branch.

So this works when you have tagged a specific release, but when we are tracking master, it will keep changing on a specific commit ID depending on whether the source control has been updated, and a generic import has been done across all the osimages.

[root@boston36 xcat_clusters]# lsdef -t osimage demo.xcat.redhat-alt.full.netboot
Object name: demo.xcat.redhat-alt.full.netboot
    environvar=GITBRANCH=master,OBJNAME=demo.xcat.redhat-alt.full.netboot,GITCOMMIT=36366a9,GITROOT=/install/xcat_clusters
    imagetype=linux
    osarch=ppc64le
    osdistroname=rhels7.5-alternate-ppc64le
    osname=Linux
    osvers=rhels7.5-alternate
    otherpkgdir=/install/REPO/software
    otherpkglist=/install/xcat_clusters/osimage/rhels/common/otherpkglist/cuda.otherpkglist
    permission=755
    pkgdir=/install/REPO/os/rhels/rhels7.5-alt-ga/ppc64le,/install/REPO/software/nvidia/cuda-dep/repo/ppc64le/
    pkglist=/install/xcat_clusters/osimage/rhels/common/pkglist/all.pkglist,/install/xcat_clusters/osimage/rhels/common/pkglist/cuda.pkglist,/install/xcat_clusters/osimage/rhels/common/pkglist/ib.pkglist
    postinstall=/install/xcat_clusters/osimage/rhels/common/postinstall/compute.postinstall
    postscripts=ospkgs,custom.ps/checknode
    profile=compute
    provmethod=netboot
    rootimgdir=/install/custom/demo.xcat.redhat-alt.full.netboot/36366a9
[root@boston36 xcat_clusters]# ls /install/custom/demo.xcat.redhat-alt.full.netboot/
30f9129  4f99618  65259ab  c95ac57  ce78684

And when we try and rinstall we will get this problem:

[root@boston36 xcat_clusters]# rinstall mid21tor24cn04 osimage=demo.xcat.redhat-alt.full.netboot
Provision node(s): mid21tor24cn04
mid21tor24cn04: Did you run "genimage" before running "packimage"? kernel cannot be found at /install/custom/demo.xcat.redhat-alt.full.netboot/36366a9/kernel on boston36
Failed to generate petitboot configurations for some node(s) on boston36. Check xCAT log file for more details.
[root@boston36 xcat_clusters]#

So in this case, the ideal solution is that we would have a latest that doesn't care the git commit tag and it's the "working directory" as we are used to in xCAT to just be able to run genimage/packimage...

This may need more though on the use case..

@immarvin
Copy link
Contributor

immarvin commented Oct 8, 2018

HI @whowutwut , why not run genimage/packimage against the osimage with commit number 36366a9?

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