Created new cart, but it doesn't generate all files and error's out Yum

23 views
Skip to first unread message

Mike Walters

unread,
Jul 27, 2018, 11:55:19 AM7/27/18
to stacki
Hi,

I have a handful of carts that work with no issues and I used the same commands to create this new cart, but it triggers an error with yum and I noticed the directory is missing files:

# yum update




Any ideas? Here are the steps I took to create the cart:

stack add appliance centos-sdc longname="centos-sdc" node=backend public=yes
stack set attr appliance centos-sdc attr=managed value=True
stack add cart centos-sdc

vi /export/stack/carts/centos-sdc/nodes/cart-centos-sdc-backend.xml
#Change this line:
<stack:script stack:stage="install-post">
#To this:
<stack:script stack:cond="appliance == 'centos-sdc'" stack:stage="install-post">

stack enable cart centos-sdc

Bill Sanders

unread,
Jul 27, 2018, 1:30:49 PM7/27/18
to stacki
That's odd.  I don't see anything wrong with your steps (although fyi, we're going to be deprecating "longname" in a future release, possibly the next release).  Is the backend host you're running `yum` from in the `default` box?

IIRC, the repodata directory should be generated on demand.  In any case you can force it by calling `stack compile cart $cartname`.  Try that and then see if yum continues to complain?

Mike Walters

unread,
Jul 27, 2018, 1:49:33 PM7/27/18
to stacki
That command did the trick!  Thank you Bill!!

stack compile cart $cartname
Reply all
Reply to author
Forward
0 new messages