https://www.puppet.com/community logo
Join Slack
Powered by
# puppet-enterprise
  • s

    Slackbot

    10/28/2022, 8:34 PM
    This message was deleted.
    n
    z
    • 3
    • 2
  • s

    Slackbot

    10/31/2022, 10:17 AM
    This message was deleted.
    👍 4
    đź’Ż 2
    s
    b
    • 3
    • 5
  • s

    Slackbot

    10/31/2022, 12:10 PM
    This message was deleted.
    t
    d
    a
    • 4
    • 16
  • t

    tuxmea

    10/31/2022, 12:44 PM
    message has been deleted
  • s

    Slackbot

    11/01/2022, 1:03 PM
    This message was deleted.
    d
    p
    +2
    • 5
    • 5
  • k

    kenyon

    11/01/2022, 5:54 PM
    I want to do an OS upgrade and PE upgrade. So if I take a PE backup on 2019.8 and restore on 2021.7, is that supported, or do you have to restore to same version as the backup is from?
  • s

    Slackbot

    11/01/2022, 5:55 PM
    This message was deleted.
    a
    • 2
    • 1
  • r

    ramindk

    11/01/2022, 6:19 PM
    IIRC it's hard to swap the OS, you can't run mixed OS in a PE system. fwiw, we found it easier to set the agents noop, spin up new infra using certs from last system, let existing agents repopulate, move agents to enforcing. Was faster in a large system due to avoid large db migrations.
  • r

    ramindk

    11/01/2022, 6:19 PM
    IIRC it's hard to swap the OS, you can't run mixed OS in a PE system. fwiw, we found it easier to set the agents noop, spin up new infra using certs from last system, let existing agents repopulate, move agents to enforcing. Was faster in a large system due to avoid large db migrations.
  • k

    kenyon

    11/01/2022, 8:33 PM
    I only have a single PE puppetserver, "standard installation". I think you're talking about a situation where you have separate compilers, "large" from https://puppet.com/docs/pe/2021.7/supported_architectures.html
  • k

    kenyon

    11/01/2022, 8:33 PM
    I only have a single PE puppetserver, "standard installation". I think you're talking about a situation where you have separate compilers, "large" from https://puppet.com/docs/pe/2021.7/supported_architectures.html
  • t

    tuxmea

    11/02/2022, 8:11 AM
    @kenyon We did an update a couple of days ago, including OS update. Procedure: 1. Upgrade Old Master. 2. Backup on old Master (please take care that there are 2 secrets which you must backup separately) 3. Install on new master 4. restore on new master.
    this 1
    👍 1
  • s

    Slackbot

    11/04/2022, 4:17 PM
    This message was deleted.
    c
    r
    • 3
    • 2
  • s

    Slackbot

    11/07/2022, 1:55 PM
    This message was deleted.
    a
    c
    +2
    • 5
    • 11
  • a

    austb

    11/07/2022, 4:29 PM
    I'm not sure if this is possible. Authenticating with two PuppetDB's using RBAC tokens might be more manageable, if Prometheus supports that?
  • a

    austb

    11/07/2022, 4:29 PM
    I'm not sure if this is possible. Authenticating with two PuppetDBs using RBAC tokens might be more manageable, if Prometheus supports that?
  • b

    bastelfreak

    11/09/2022, 1:07 PM
    anyone has seen this during a code deploy, in the primary puppetserver.log (PE 2021.7)?
    Copy code
    2022-10-28T20:08:01.446Z WARN  [qtp740278701-595] [c.p.p.ShellUtils] Executed an external process which logged to STDERR: error: object directory /opt/puppetlabs/server/data/code-manager/worker-caches/deploy-pool-2-2/git@github.com-bastelfreak-controlrepo.git/objects does not exist; check .git/objects/info/alternates
    error: object directory /opt/puppetlabs/server/data/code-manager/worker-caches/deploy-pool-2-1/git@*REDACTED*-*REDACTED*-controlrepo.git/objects does not exist; check .git/objects/info/alternates
    Slack Conversation
  • b

    bastelfreak

    11/09/2022, 1:07 PM
    Anyone saw that in the past/has an idea how to fix this?
  • m

    Marty Ewings

    11/09/2022, 1:27 PM
    any change to the repo, paths or branch names recently?
  • b

    bastelfreak

    11/09/2022, 1:31 PM
    there are a lot of code changes that get deployed on a regular basis. now this is seen during each code deploy
  • m

    Marty Ewings

    11/09/2022, 1:32 PM
    If this is like a non-prod system, and you are not worried about finding a root cause, id start with clearing out the deploy pools contents manually as this is a git error likely something has gotten corrupt or our of whack
  • m

    Marty Ewings

    11/09/2022, 1:32 PM
    if that doesnt solve it there are larger hammers….
  • m

    Marty Ewings

    11/09/2022, 1:33 PM
    but in a prod system such things have the possibility of impacting the environment so i wouldnt be as confident in just doing it
  • b

    bastelfreak

    11/09/2022, 1:36 PM
    I noticed that
    /opt/puppetlabs/server/data/code-manager/worker-caches/
    gets cleaned up after a pe-puppetserver restart
  • b

    bastelfreak

    11/09/2022, 1:36 PM
    now my inital thought might have been wrong. I currently don't see the error during code deploy, but during each puppet run
  • m

    Marty Ewings

    11/09/2022, 1:37 PM
    really ? thats an odd thing to see in a puppet run
  • b

    bastelfreak

    11/09/2022, 1:37 PM
    Copy code
    #!/bin/bash
    CODEDIR='/etc/puppetlabs/code'   # better: $(puppet master --configprint codedir)
    CODESTAGEDIR='/etc/puppetlabs/code-staging'  # better: "($puppet master --configprint codedir)-staging"
    if [ -x /usr/bin/git ]; then
      if [ -d $CODESTAGEDIR ]; then
        ENVGITDIR="${CODESTAGEDIR}/environments/$1/.git"
      else
        ENVGITDIR="${CODEDIR}/environments/$1/.git"
      fi
      /usr/bin/git --git-dir $ENVGITDIR log --pretty=format:"%h - %an, %ad : %s" -1
    else
      echo "no git - environment $1"
    fi
    exit 0
  • b

    bastelfreak

    11/09/2022, 1:37 PM
    that's my config_version config_version script (configured in environment.conf)
  • b

    bastelfreak

    11/09/2022, 1:37 PM
    Copy code
    #!/bin/bash
    CODEDIR='/etc/puppetlabs/code'   # better: $(puppet master --configprint codedir)
    CODESTAGEDIR='/etc/puppetlabs/code-staging'  # better: "($puppet master --configprint codedir)-staging"
    if [ -x /usr/bin/git ]; then
      if [ -d $CODESTAGEDIR ]; then
        ENVGITDIR="${CODESTAGEDIR}/environments/$1/.git"
      else
        ENVGITDIR="${CODEDIR}/environments/$1/.git"
      fi
      /usr/bin/git --git-dir $ENVGITDIR log --pretty=format:"%h - %an, %ad : %s" -1
    else
      echo "no git - environment $1"
    fi
    exit 0
  • b

    bastelfreak

    11/09/2022, 1:38 PM
    ah mhm!
1...293031...73Latest