Teradata/stacki

frontend-install.py bombs out without python-jsoncomment

DaiTengu opened this issue · 2 comments

Fresh minimal install of CentOS 7.6.1810
./frontend-install.py --stacki-iso=stacki-5.6rc1-redhat7.x86_64.disk1.iso --extra-iso=CentOS-7-x86_64-Everything-1810.iso --use-existing

Installed:
  foundation-newt.x86_64 0:0.52.20-redhat7
  foundation-python.x86_64 0:3.8.3-redhat7
  foundation-python-PyMySQL.x86_64 0:0.9.3-redhat7
  foundation-redhat.x86_64 0:5.6rc1-redhat7
  net-tools.x86_64 0:2.0-0.24.20131004git.el7
  rsync.x86_64 0:3.1.2-4.el7
  stack-command.noarch 0:5.6rc1-redhat7
  stack-kickstart.x86_64 0:5.6rc1-redhat7
  stack-mq.noarch 0:5.6rc1-redhat7
  stack-probepal.noarch 0:5.6rc1-redhat7
  stack-pylib.noarch 0:5.6rc1-redhat7
  stack-templates.x86_64 0:5.6rc1-redhat7
  stack-wizard.noarch 0:5.6rc1-redhat7

Dependency Installed:
  foundation-python-Jinja2.x86_64 0:2.10.3-redhat7
  foundation-python-MarkupSafe.x86_64 0:1.1.1-redhat7
  foundation-python-PyYAML.x86_64 0:5.2-redhat7

Complete!
#######################################
Configuring dynamic linker for stacki
#######################################
#######################################
Pulling existing info
#######################################
error - stack.commands.add.box import failed (missing or bad file) - No module named 'jsoncomment'
#######################################
Generate XML
#######################################
cmd: /opt/stack/bin/stack list node xml server attrs={'Info_FQDN': 'stacki-sg.ap.trmr.io', 'Kickstart_Langsupport': 'en_US', 'Info_ClusterLatlong': 'N32.87 W117.22', 'Kickstart_PrivateDNSServers': '10.32.10.105,10.32.10.106', 'Kickstart_PrivateNetmask': '255.255.255.0', 'Kickstart_PrivateNTPHost': '10.14.69.250', 'Kickstart_PrivateNetwork': '10.14.69.0', 'Kickstart_Timezone': 'America/New_York', 'Kickstart_PrivateHostname': 'stacki-sg', 'Kickstart_PrivateAddress': '10.14.69.250', 'Kickstart_PrivateKickstartHost': '10.14.69.250', 'Kickstart_PrivateDNSDomain': 'ap.trmr.io', 'Kickstart_PrivateBroadcast': '10.14.69.255', 'barnacle': 'True', 'Kickstart_PublicNTPHost': 'pool.ntp.org', 'Kickstart_Multicast': '233.250.193.148', 'Kickstart_PrivateInterface': 'eth0', 'Kickstart_PrivateRootPassword': '$6$3ljQyar0PCBbhIVM$yHNHXCXsh0adk57N0zlFd7eUlXAVDCavN/faQnIn5eBTu9B9zGJZ.eU8JnGVn9QWp/Od/pgyPHLdkzGS4zHUB1', 'Info_CertificateState': 'California', 'Info_CertificateOrganization': 'StackIQ', 'Info_CertificateLocality': 'Solana Beach', 'Kickstart_Lang': 'en_US', 'Info_CertificateCountry': 'US', 'Server_Partitioning': 'force-default-root-disk-only', 'Kickstart_PrivateGateway': '10.14.69.1', 'Kickstart_PrivateNetmaskCIDR': '24', 'Kickstart_PrivateEthernet': 'f6:1a:87:1c:06:ad', 'Kickstart_Keyboard': 'us', 'nukedisks': 'False'}
error - stack.commands.list.node.xml import failed (missing or bad file) - No module named 'jsoncomment'
Could not generate XML

I was able to manually install foundation-python-jsoncomment, but it should probably be added to the bootstrap dependencies, I'm guessing.

Hi @DaiTengu just getting to this.

Where did you get the frontend-install.py for this? In head of tree, that should be called out for install:

https://github.com/Teradata/stacki/blob/develop/tools/fab/frontend-install.py#L295

Though I see now if you followed the existing documentation, it points to the copy on the master branch which doesn't yet have this change. :/

In any case, I'm going to see about putting a hard dependency for foundation-python-jsoncomment in the rpm for stack-command

A change to the dependencies for foundation-python-jsoncomment was added. Landed in stacki 5.6rc3. Changes to the documentation are still pending but please note the change that would have prevented this issue is to install the stacki-fab and foundation-python-3.* packages that are shipped on the stacki iso. Then you can run frontend-install.py (it is part of the stacki-fab package) as you did before.