xcat2 / xcat-inventory

An inventory tool for xcat cluster
8 stars 16 forks source link

it is inaccurate to export the inventory with environment variables #108

Open immarvin opened 6 years ago

immarvin commented 6 years ago

We import an inventory with environment variables , then we expect we can get the updated inventory file with environment variables on export, we have implemented this. But in most of the time, the exported inventory is misleading, which does not exactly restore the inventory file imported.

I think we need to consider to export the raw inventory without any reverse environment substitution.

immarvin commented 6 years ago

@robin2008 @whowutwut @zet809 @xuweibj , any thoughts?

zet809 commented 6 years ago

hi, @immarvin , can you give some example here? Do you mean the export inventory file failed to replace a string back to environment variable?

robin2008 commented 6 years ago

@immarvin here you mean to extra the variables from osimage definition in xcat DB?

Variables are normally used when applying the code pattern, aka import. In this case, the variables itself will be stored into source control too.

For export, I thought there might be two potential use cases:

As the export case is very limited, need to dig out what's required.