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

[BUG] pkgrepo.managed fails with 'SourceEntry' object has no attribute 'repo_line' #62860

Closed
1 task done
bio opened this issue Oct 11, 2022 · 2 comments
Closed
1 task done
Labels
Bug broken, incorrect, or confusing behavior Duplicate Duplicate of another issue or PR - will be closed needs-triage

Comments

@bio
Copy link

bio commented Oct 11, 2022

Description
I tried to install the latest fish shell version from the official linux repository to Debian 11 but got an error below.

Failed to configure repo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_11/ /': 'SourceEntry' object has no attribute 'repo_line'

          ID: repo_opensuse_fish
    Function: pkgrepo.managed
        Name: deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_11/ /
      Result: False
     Comment: Failed to configure repo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_11/ /': 'SourceEntry' object has no attribute 'repo_line'
     Started: 10:16:00.554523
    Duration: 2171.715 ms
     Changes:

Setup

repo_opensuse_fish:
  pkgrepo.managed:
    - name: "deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_11/ /"
    - file: /etc/apt/sources.list.d/shells:fish:release:3.list
    - key_url: https://download.opensuse.org/repositories/shells:fish:release:3/Debian_11/Release.key

Please be as specific as possible and give set-up details.

  • on-prem machine

Steps to Reproduce the behavior

salt-ssh -l trace testhost state.apply testhost

[TRACE   ] STDOUT testhost
/usr/bin/scp
_edbc7885e4f9aac9b83b35999b68d015148caf467b78fa39c05f669c0ff89878
{
    "local": {
        "jid": "20221011101914864650",
        "return": {
            "pkgrepo_|-repo_opensuse_fish_|-deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_11/ /_|-managed": {
                "name": "deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_11/ /",
                "changes": {},
                "result": false,
                "comment": "Failed to configure repo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_11/ /': 'SourceEntry' object has no attribute 'repo_line'",
                "__sls__": "system.packages",
                "__run_num__": 2,
                "start_time": "10:19:18.081169",
                "duration": 2155.624,
                "__id__": "repo_opensuse_fish"
            },
...
[TRACE   ] data = {'testhost': {'pkgrepo_|-repo_opensuse_fish_|-deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_11/ /_|-managed': {'name': 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_11/ /', 'changes': {}, 'result': False, 'comment': "Failed to configure repo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_11/ /': 'SourceEntry' object has no attribute 'repo_line'", '__sls__': 'system.packages', '__run_num__': 2, 'start_time': '10:19:18.081169', 'duration': '2155.624 ms', '__id__': 'repo_opensuse_fish'}, ...

Expected behavior
The new deb repo should be added/updated.

Versions Report

salt-ssh --versions-report (Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Salt Version:
          Salt: 3005

Dependency Versions:
          cffi: 1.14.6
      cherrypy: 18.6.1
      dateutil: 2.8.0
     docker-py: Not Installed
         gitdb: 4.0.5
     gitpython: 3.1.12
        Jinja2: 3.1.0
       libgit2: 1.5.0
      M2Crypto: Not Installed
          Mako: 1.1.4
       msgpack: 1.0.2
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     pycparser: 2.21
      pycrypto: 3.15.0
  pycryptodome: 3.9.8
        pygit2: 1.10.0
        Python: 3.10.7 (main, Sep 15 2022, 01:51:29) [Clang 14.0.0 (clang-1400.0.29.102)]
  python-gnupg: 0.4.8
        PyYAML: 5.4.1
         PyZMQ: 23.2.0
         smmap: 3.0.2
       timelib: 0.2.4
       Tornado: 4.5.3
           ZMQ: 4.3.4

System Versions:
          dist: darwin 21.6.0
        locale: utf-8
       machine: x86_64
       release: 21.6.0
        system: Darwin
       version: 12.6 x86_64
@bio bio added Bug broken, incorrect, or confusing behavior needs-triage labels Oct 11, 2022
@welcome
Copy link

welcome bot commented Oct 11, 2022

Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!

@OrangeDog
Copy link
Contributor

Duplicate: #62546

@OrangeDog OrangeDog added the Duplicate Duplicate of another issue or PR - will be closed label Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Duplicate Duplicate of another issue or PR - will be closed needs-triage
Projects
None yet
Development

No branches or pull requests

2 participants