ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Fedora Salt Master - New installation

    IT Discussion
    salt salt master setup error
    6
    56
    4.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      Do a netstat -tulpn again. Anytime you see that those ports are in use, that means that Salt-Master is running. Not sure what is starting it, but there is no question that it is being started somewhere. Only one copy can bind to the ports.

      DustinB3403D DashrenderD 2 Replies Last reply Reply Quote 0
      • DustinB3403D
        DustinB3403 @scottalanmiller
        last edited by DustinB3403

        @scottalanmiller said in Fedora Salt Master - New installation:

        Do a netstat -tulpn again.

        netstat -tulpn
        Active Internet connections (only servers)
        Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
        tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      803/sshd
        tcp        0      0 master-ip:4505     0.0.0.0:*               LISTEN      1019/python2.7
        tcp        0      0 master-ip:4506     0.0.0.0:*               LISTEN      1025/python2.7
        tcp6       0      0 :::22                   :::*                    LISTEN      803/sshd
        tcp6       0      0 :::9090                 :::*                    LISTEN      1/systemd
        udp        0      0 127.0.0.1:323           0.0.0.0:*                           749/chronyd
        udp        0      0 0.0.0.0:68              0.0.0.0:*                           916/dhclient
        udp6       0      0 ::1:323                 :::*                                749/chronyd
        
        1 Reply Last reply Reply Quote 0
        • DustinB3403D
          DustinB3403
          last edited by

          Finally!

          salt-key -A
          The following keys are going to be accepted:
          Unaccepted Keys:
          admins-MacBook-Air.local
          
          1 Reply Last reply Reply Quote 0
          • coliverC
            coliver @DustinB3403
            last edited by coliver

            @DustinB3403 said in Fedora Salt Master - New installation:

            [root@localhost ~]# salt-master --log-level=debug

            Doesn't this mean that you are starting the salt-master via the CLI and setting the log-level to debug? Stop the salt-master service with systemctl and rerun this command. I bet the output will be different.

            JaredBuschJ scottalanmillerS 2 Replies Last reply Reply Quote 0
            • JaredBuschJ
              JaredBusch @coliver
              last edited by

              @coliver said in Fedora Salt Master - New installation:

              @DustinB3403 said in Fedora Salt Master - New installation:

              [root@localhost ~]# salt-master --log-level=debug

              Doesn't this mean that you are starting the salt-master via the CLI and setting the log-level to debug? Stop the salt-master service with systemctl and rerun this command. I be the output will be different.

              Correct. He is trying to start a second instance.

              DustinB3403D 1 Reply Last reply Reply Quote 1
              • DustinB3403D
                DustinB3403 @JaredBusch
                last edited by

                @JaredBusch said in Fedora Salt Master - New installation:

                Correct. He is trying to start a second instance.

                Technically just following the official documentation. If it starts a second instance shame on them for not clarifying that point.

                As the documentation reads, it's just to pull detailed logs.

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @coliver
                  last edited by

                  @coliver said in Fedora Salt Master - New installation:

                  Doesn't this mean that you are starting the salt-master via the CLI

                  That's what I kept saying 🙂

                  1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @DustinB3403
                    last edited by

                    @DustinB3403 said in Fedora Salt Master - New installation:

                    @JaredBusch said in Fedora Salt Master - New installation:

                    Correct. He is trying to start a second instance.

                    Technically just following the official documentation. If it starts a second instance shame on them for not clarifying that point.

                    As the documentation reads, it's just to pull detailed logs.

                    I read the doc, I don't see it ever saying to do that. Where did you get that command from?

                    DustinB3403D 1 Reply Last reply Reply Quote 0
                    • DustinB3403D
                      DustinB3403 @scottalanmiller
                      last edited by

                      @scottalanmiller said in Fedora Salt Master - New installation:

                      Where did you get that command from?

                      https://docs.saltstack.com/en/2015.8/ref/configuration/index.html

                      1 Reply Last reply Reply Quote 0
                      • coliverC
                        coliver
                        last edited by

                        Literally says: 82015c6d-e3d1-4de5-98fc-beb4b824c96b-image.png

                        It's pretty clear.

                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller @coliver
                          last edited by

                          @coliver said in Fedora Salt Master - New installation:

                          Literally says: 82015c6d-e3d1-4de5-98fc-beb4b824c96b-image.png

                          It's pretty clear.

                          Ah, not part of the installation docs. That's why I didn't see it. Going through the installation, it is all set by the end of it, not sure where this configuration page pops in, but that's causing the problem. It was all installed and configured previously by following the installation guide.

                          1 Reply Last reply Reply Quote 0
                          • DashrenderD
                            Dashrender @scottalanmiller
                            last edited by

                            @scottalanmiller said in Fedora Salt Master - New installation:

                            Do a netstat -tulpn again. Anytime you see that those ports are in use, that means that Salt-Master is running. Not sure what is starting it, but there is no question that it is being started somewhere. Only one copy can bind to the ports.

                            I was wondering if this was the issue - that Dustin is trying to start a second copy.

                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                            • scottalanmillerS
                              scottalanmiller @Dashrender
                              last edited by

                              @Dashrender said in Fedora Salt Master - New installation:

                              @scottalanmiller said in Fedora Salt Master - New installation:

                              Do a netstat -tulpn again. Anytime you see that those ports are in use, that means that Salt-Master is running. Not sure what is starting it, but there is no question that it is being started somewhere. Only one copy can bind to the ports.

                              I was wondering if this was the issue - that Dustin is trying to start a second copy.

                              So this issue here is that there is an installation guide that gets you fully up and running. There there is a full reference for doing everything by hand. The first part was set up using the installation guide. Then that command to start the process manually was buried deep in the commands reference, disconnected from the installation guide. The first bit is a one page installer than is conclusive, a couple commands and you are done.

                              The configuration guide is for people doing everything by hand, such as writing your own start up scripts instead of using the ones from the installer. So the first part assumes a standard installation. The second part assumes you are constructing the system manually and haven't used the first part.

                              1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller
                                last edited by scottalanmiller

                                This is the installation page. You can see how short it is.

                                https://docs.saltstack.com/en/2015.8/topics/installation/fedora.html

                                1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller
                                  last edited by

                                  Here is the problem, I think...

                                  https://docs.saltstack.com/en/2015.8/topics/troubleshooting/master.html

                                  So if you go through their massive manual, they have a troubleshooting section. And they tell you to run Master in the foreground for troubleshooting. They are assuming that you will stop it in the background first, but they never mention it. It's not part of the installation, but it probably should have a note about stopping any background processes first as easily a lot of people won't realize you can have both.

                                  1 Reply Last reply Reply Quote 0
                                  • scottalanmillerS
                                    scottalanmiller
                                    last edited by

                                    Oh, Dustin just showed me where there is a link to the "Configuring" page as an instruction on the installation page. That's BS. It's unneeded (generally) and telling you to start it again there is totally wrong given where you are coming from.

                                    1 Reply Last reply Reply Quote 1
                                    • DustinB3403D
                                      DustinB3403
                                      last edited by DustinB3403

                                      And based on the "Configuring Salt" link, it goes to "post install tasks" and that is where the step comes from.

                                      I'll admit I completely skipped firewalld, but once I did and had it sorted was I mostly there.

                                      Their documentation is weird, as click "next" takes you to the next OS install process, so the "Configure salt" link is the logical step in the guide.

                                      scottalanmillerS 2 Replies Last reply Reply Quote 0
                                      • DustinB3403D
                                        DustinB3403
                                        last edited by

                                        And really, all I'm looking for is a convenient way setup my user workstations, and update them without the Apple overhead, including with brew commands.

                                        scottalanmillerS 1 Reply Last reply Reply Quote 1
                                        • scottalanmillerS
                                          scottalanmiller @DustinB3403
                                          last edited by

                                          @DustinB3403 said in Fedora Salt Master - New installation:

                                          And based on the "Configuring Salt" link, it goes to "post install tasks" and that is where the step comes from.

                                          Right, which really is dumb as there shouldn't be any at all.

                                          1 Reply Last reply Reply Quote 0
                                          • scottalanmillerS
                                            scottalanmiller @DustinB3403
                                            last edited by

                                            @DustinB3403 said in Fedora Salt Master - New installation:

                                            Their documentation is weird, as click "next" takes you to the next OS install process, so the "Configure salt" link is the logical step in the guide.

                                            Yeah, they are using a format that doesn't make sense. It makes it feel like you are supposed to read it through when you are definitely not meant to do that.

                                            DustinB3403D 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 3 / 3
                                            • First post
                                              Last post