https://www.puppet.com/community logo
Join Slack
Powered by
# puppet
  • r

    Raj Parpani

    04/10/2024, 9:48 PM
    I have agent nodes on my old puppet master which have not migrated to my new puppet master after running a migration
  • r

    Raj Parpani

    04/10/2024, 9:48 PM
    What is the best way to resolve this issue making sure any nodes missed are being carried over
  • r

    Raj Parpani

    04/10/2024, 10:03 PM
    I printed out the hostname on the missing agent node and it says puppet so i assumed after the dns cutover, everything would just be looking at the new puppet server
  • c

    csharpsteen

    04/10/2024, 10:11 PM
    Every
    puppet
    agent run opens a new network connection to the server, so
    puppet
    should eventually resolve to the new IP address after DNS caches expire. If that isn't happening, that would indicate the hostname data those agents are receiving has not been updated with the new IP address for the
    puppet
    hostname.
  • c

    csharpsteen

    04/10/2024, 10:11 PM

    https://www.cyberciti.biz/media/new/cms/2017/04/dns.jpg▾

  • r

    Raj Parpani

    04/10/2024, 10:23 PM
    If that isn't happening, that would indicate the hostname data those agents are receiving has not been updated with the new IP address for the
    puppet
    hostname. How to resolve this issue
  • r

    Raj Parpani

    04/10/2024, 10:24 PM
    Those agents do not exist on the new host at all so confused on the best process to fix this
  • b

    bastelfreak

    04/10/2024, 10:24 PM
    point them to the FQDN of the new server. don't use
    puppet
    (which you probably injected in /etc/hosts?)
  • c

    csharpsteen

    04/10/2024, 10:24 PM
    You can check by running
    getent hosts puppet
    or
    nslookup puppet
    on the nodes that aren't connecting in. If that returns the old IP address, then you need to update the hostname data. How to make that update is 100% a site-specific operation. Punching it into an UI, updating a BIND zone database, etc.
  • b

    bastelfreak

    04/10/2024, 10:25 PM
    and you can use a bolt plan to update the puppet.conf on the agents for the new server FQDN and then start an agent run
    👍🏼 1
  • r

    Raj Parpani

    04/10/2024, 10:26 PM
    I used
    nslookup puppet on one of the nodes
  • r

    Raj Parpani

    04/10/2024, 10:27 PM
    It is indicating the new host but yet puppet does not have that node in it's list (The NEW PUPPET)
  • b

    bastelfreak

    04/10/2024, 10:27 PM
    yeah don't rely on that
  • b

    bastelfreak

    04/10/2024, 10:27 PM
    as I said, use the actual FQDN
  • r

    Raj Parpani

    04/10/2024, 10:27 PM
    use a bolt plan to update the puppet.conf on the agents for the new server FQDN and then start an agent run - please explain
  • b

    bastelfreak

    04/10/2024, 10:28 PM
    each agent has a puppet.conf
  • r

    Raj Parpani

    04/10/2024, 10:28 PM
    correct
  • b

    bastelfreak

    04/10/2024, 10:28 PM
    that should containt
    server = <http://foo.local.something.com|foo.local.something.com>
  • c

    csharpsteen

    04/10/2024, 10:28 PM
    Ok, if
    nslookup puppet
    returns the new IP address, does
    puppet agent -t
    run without error?
  • r

    Raj Parpani

    04/10/2024, 10:28 PM
    puppet agent -t runs with no error
  • b

    bastelfreak

    04/10/2024, 10:28 PM
    ensure that every puppet.conf contains the new FQDN
  • b

    bastelfreak

    04/10/2024, 10:28 PM
    eh what
  • c

    csharpsteen

    04/10/2024, 10:28 PM
    Then the agent checked into the new server successfully.
  • r

    Raj Parpani

    04/10/2024, 10:28 PM
    so why is the node missing from the UI?
  • b

    bastelfreak

    04/10/2024, 10:28 PM
    or your DNS is fooling you
  • b

    bastelfreak

    04/10/2024, 10:29 PM
    which UI?
  • r

    Raj Parpani

    04/10/2024, 10:29 PM
    puppet UI
  • b

    bastelfreak

    04/10/2024, 10:29 PM
    which puppet UI?
  • b

    bastelfreak

    04/10/2024, 10:29 PM
    Puppet enterprise? puppetboard? foreman?
  • r

    Raj Parpani

    04/10/2024, 10:29 PM
    puppet enterprise
1...415416417...428Latest