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

Salt 2018.3.0 service.enable mangles /etc/rc.conf, rendering system unbootable #48036

Closed
JamesSnow opened this issue Jun 8, 2018 · 6 comments
Labels
Duplicate Duplicate of another issue or PR - will be closed
Milestone

Comments

@JamesSnow
Copy link

Description of Issue/Question

Tagging @cedwards at his request.

Tested on both FreeBSD 11.1 and 10.4:

root@salt6:~ # cat /etc/rc.conf
ec2_configinit_enable=YES
ec2_fetchkey_enable=YES
ec2_ephemeralswap_enable=YES
ec2_loghostkey_enable=YES
firstboot_freebsd_update_enable=YES
firstboot_pkgs_enable=YES
growfs_enable="YES"
ifconfig_DEFAULT="SYNCDHCP accept_rtadv"
sshd_enable="YES"
firstboot_pkgs_list="awscli"
ipv6_activate_all_interfaces="YES"
dhclient_program="/usr/local/sbin/dual-dhclient"
hostname="salt6"

root@salt6:~ # salt-call service.enable salt_master
local:
    True

root@salt6:~ # cat /etc/rc.conf
ec2_configinit_enable=YESec2_fetchkey_enable=YESec2_ephemeralswap_enable=YESec2_loghostkey_enable=YESfirstboot_freebsd_update_enable=YESfirstboot_pkgs_enable=YESgrowfs_enable="YES"ifconfig_DEFAULT="SYNCDHCPaccept_rtadv"sshd_enable="YES"firstboot_pkgs_list="awscli"ipv6_activate_all_interfaces="YES"dhclient_program="/usr/local/sbin/dual-dhclient"hostname="salt6"
salt_master_enable="YES"

root@salt6:~ # pkg info | grep salt
py27-salt-2018.3.0_1           Distributed remote execution and configuration management system
root@salt6:~ #

Setup

None. This is a vanilla install, fresh out of the box.

Steps to Reproduce Issue

pkg install py-salt
salt-call service.enable salt_master

Versions Report

root@salt6:~ # salt --versions-report
Salt Version:
           Salt: 2018.3.0

Dependency Versions:
           cffi: 1.11.5
       cherrypy: Not Installed
       dateutil: Not Installed
      docker-py: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.10
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.5.6
   mysql-python: Not Installed
      pycparser: 2.18
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 2.7.15 (default, Jun  1 2018, 20:05:17)
   python-gnupg: Not Installed
         PyYAML: 3.12
          PyZMQ: 17.0.0
           RAET: Not Installed
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.5.3
            ZMQ: 4.2.3

System Versions:
           dist:
         locale: US-ASCII
        machine: amd64
        release: 11.1-RELEASE-p10
         system: FreeBSD
        version: Not Installed

root@salt6:~ #
@Ch3LL
Copy link
Contributor

Ch3LL commented Jun 8, 2018

ping @cedwards you planning on pushing a PR for this or do we need to try to get someone else on it?

@Ch3LL Ch3LL added Execution-Module Bug broken, incorrect, or confusing behavior severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around P3 Priority 3 labels Jun 8, 2018
@Ch3LL Ch3LL added this to the Approved milestone Jun 8, 2018
@gtmanfred
Copy link
Contributor

This is already fixed for 2018.3.1

@cedwards
Copy link
Contributor

cedwards commented Jun 8, 2018

@gtmanfred - Can you point me to the patch for 2018.3.1? I may need to a midstream patch in the port.

@cedwards
Copy link
Contributor

cedwards commented Jun 9, 2018

I did a little bit of digging and found this related issue #47502 . I will update the port with a patch pending the 2018.3.1 release.

@gtmanfred
Copy link
Contributor

👍 #47502

@gtmanfred gtmanfred added Duplicate Duplicate of another issue or PR - will be closed and removed Bug broken, incorrect, or confusing behavior Execution-Module severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around P3 Priority 3 labels Jun 9, 2018
@gtmanfred gtmanfred modified the milestones: Approved, Blocked Jun 9, 2018
@cedwards
Copy link
Contributor

cedwards commented Jun 9, 2018

FreeBSD bug tracked here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228843

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Duplicate of another issue or PR - will be closed
Projects
None yet
Development

No branches or pull requests

4 participants