Menu

#4764 Can't successly deploy CN when using centos and rhelhpc diskless osimage

2.11
open
nobody
genimage (20)
linux provisioning
5
2015-07-28
2015-07-28
Jianbo Cui
No

When using centos7.0 and rhelhpc7.0 diskless osimage to deploy CN, the CN stopped to check tmplfs and can't be deployed successly.
We think that genimage didn't cover centos and rhelhpc os when generate the fstab file and we added the following code in genimage and it seems to work well.


[root@pcmrhel71 rh]# diff -u genimage_bak genimage
--- genimage_bak 2015-07-28 11:36:17.619166475 +0800
+++ genimage 2015-07-27 16:06:38.873525632 +0800
@@ -1684,7 +1684,16 @@
return 1;
}
}
-
+ elsif ($os =~/centos(\d+)/){
+ if($1 >= 7){
+ return 1;
+ }
+ }
+ elsif ($os =~/rhelhpc(\d+)/){
+ if($1 >= 7){
+ return 1;
+ }
+ }
return 0;
}


Discussion

  • Jianbo Cui

    Jianbo Cui - 2015-07-28
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,24 +1,26 @@
     When using centos7.0 and rhelhpc7.0 diskless osimage to deploy CN, the CN stopped to check tmplfs and can't be deployed successly.
     We think that genimage didn't cover centos and rhelhpc os when generate the fstab file and we added the following code in genimage and it seems to work well.
     --------------------------------------------------------------------------------------
    -[root@pcmrhel71 rh]# diff -u genimage genimage_bak
    ---- genimage    2015-07-27 16:06:38.873525632 +0800
    -+++ genimage_bak        2015-07-28 11:36:17.619166475 +0800
    -@@ -1684,16 +1684,7 @@
    +[root@pcmrhel71 rh]# diff -u genimage_bak genimage
    +--- genimage_bak        2015-07-28 11:36:17.619166475 +0800
    ++++ genimage    2015-07-27 16:06:38.873525632 +0800
    +@@ -1684,7 +1684,16 @@
                  return 1;
              }
          }
    --    elsif ($os =~/centos(\d+)/){
    --        if($1 >= 7){
    --            return 1;
    --        }
    --    }
    --    elsif ($os =~/rhelhpc(\d+)/){
    --        if($1 >= 7){
    --            return 1;
    --       }
    --    }
    -+
    +-
    ++    elsif ($os =~/centos(\d+)/){
    ++        if($1 >= 7){
    ++            return 1;
    ++        }
    ++    }
    ++    elsif ($os =~/rhelhpc(\d+)/){
    ++        if($1 >= 7){
    ++            return 1;
    ++       }
    ++    }
          return 0;
      }
    +
    +
     --------------------------------------------------------------------------------------
    
     
  • yangsong

    yangsong - 2015-07-28

    the fix is ok for me.

     
  • Degao Chu

    Degao Chu - 2015-07-28

    commited in 2.9.1-pcm 7fb8aa629d0696174deae38703a4f31d7adf0bc0.

    Need merge to master after xCAT2.10 GA