Skip to content

new hg backups are failing #474

Closed
Closed

Description

@ewdurbin

From cron to infrastructure-staff:

Warning: Identity file /etc/backup/.ssh/id_rsa_hg-mercurial-static not accessible: No such file or directory.
root@backup.sfo1.psf.io: Permission denied (publickey).

and

Warning: Identity file /etc/backup/.ssh/id_rsa_hg-svn-config not accessible: No such file or directory.
root@backup.sfo1.psf.io: Permission denied (publickey).

It looks like this is because we infer that a given backup config has an individual backup key when templating the remote command.

Activity

  1. JacobCoffee commented on Aug 19, 2024

    @JacobCoffee
    Member

    Investigating... Keys are not being made for the two new entries :(

    root@hg:~# ls /etc/backup/.ssh
    id_rsa_python-hg
    

    from

    {{ backup }}-ssh-key:
      file.managed:
        - name: /etc/backup/.ssh/id_rsa_{{ backup }}
        - contents_pillar: backup-secret:directories:{{ backup }}:ssh_key
        - user: {{ config['user'] }}
        - mode: "0600"
        - show_diff: False 
    

    probably due to missing pillar data in the secrets file for backup

  2. added
    hgRelates to the legacy HG repository services
    on Aug 19, 2024
  3. added a commit that references this issue on Aug 22, 2024
  4. ewdurbin commented on Aug 28, 2024

    @ewdurbin
    MemberAuthor

    Resolved with #484

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

hgRelates to the legacy HG repository services

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions