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

Update dependency sztpd to v0.0.15 #7

Merged
merged 1 commit into from
Feb 24, 2023
Merged

Update dependency sztpd to v0.0.15 #7

merged 1 commit into from
Feb 24, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 19, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
sztpd ==0.0.11 -> ==0.0.15 age adoption passing confidence

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from a team as a code owner February 19, 2023 01:25
@glimchb
Copy link
Member

glimchb commented Feb 19, 2023

failed on

Attaching to sztpd_bootstrap_1
bootstrap_1  | Traceback (most recent call last):
bootstrap_1  |   File "/usr/local/bin/sztpd", line [5](https://github.com/opiproject/sztpd/actions/runs/4213920776/jobs/7314008227#step:7:6), in <module>
bootstrap_1  |     from sztpd.__main__ import main
bootstrap_1  |   File "/usr/local/lib/python3.11/site-packages/sztpd/__main__.py", line 5, in <module>
bootstrap_1  |     from .  import sztpd
bootstrap_1  |   File "/usr/local/lib/python3.11/site-packages/sztpd/sztpd.py", line 15, in <module>
bootstrap_1  |     from .yangcore import utils
bootstrap_1  |   File "/usr/local/lib/python3.11/site-packages/sztpd/yangcore/utils.py", line 4[8](https://github.com/opiproject/sztpd/actions/runs/4213920776/jobs/7314008227#step:7:9), in <module>
bootstrap_1  |     yl4errors=set_yyyy_mm_dd(yl4errors)
bootstrap_1  |               ^^^^^^^^^^^^^^^^^^^^^^^^^
bootstrap_1  |   File "/usr/local/lib/python3.[11](https://github.com/opiproject/sztpd/actions/runs/4213920776/jobs/7314008227#step:7:12)/site-packages/sztpd/yangcore/utils.py", line 42, in set_yyyy_mm_dd
bootstrap_1  |     for C in listdir('src/'+app_name+'/yang'):
bootstrap_1  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bootstrap_1  | FileNotFoundError: [Errno 2] No such file or directory: 'src/sztpd/yang'

@renovate renovate bot force-pushed the renovate/sztpd-0.x branch 2 times, most recently from a769461 to af68fd0 Compare February 20, 2023 14:44
@renovate renovate bot changed the title Update dependency sztpd to v0.0.12 Update dependency sztpd to v0.0.14 Feb 20, 2023
@glimchb
Copy link
Member

glimchb commented Feb 20, 2023

with new 14 version new failure:

2023-02-20T16:54:58.2978561Z Attaching to sztpd_bootstrap_1
2023-02-20T16:54:58.2979556Z �[36mbootstrap_1  |�[0m Traceback (most recent call last):
2023-02-20T16:54:58.2980488Z �[36mbootstrap_1  |�[0m   File "/usr/local/bin/sztpd", line 8, in <module>
2023-02-20T16:54:58.2981346Z �[36mbootstrap_1  |�[0m     sys.exit(main())
2023-02-20T16:54:58.2981895Z �[36mbootstrap_1  |�[0m yangcore.init() threw exception: ModuleNotFound
2023-02-20T16:54:58.2982520Z �[36mbootstrap_1  |�[0m wn-app@wn-app-rpcs@2022-05-26.yang
2023-02-20T16:54:58.2984221Z �[36mbootstrap_1  |�[0m              ^^^^^^
2023-02-20T16:54:58.2984799Z �[36mbootstrap_1  |�[0m   File "/usr/local/lib/python3.11/site-packages/sztpd/__main__.py", line 7, in main
2023-02-20T16:54:58.2990990Z �[36mbootstrap_1  |�[0m     def main(argv=None):A=argparse.ArgumentParser(prog='sztpd',formatter_class=argparse.RawDescriptionHelpFormatter,description='SZTPD implements the "bootstrap server" defined in RFC 8572.',epilog='\nExit status code: 0 on success, non-0 on error.  Error output goes to stderr.\n\nThe "cacert" argument is a filepath to a PEM file that contains one or more X.509\nCA certificates used to authenticate the RDBMS\'s TLS certificate.\n\nThe "key" and "cert" arguments are each a filepath to a PEM file that contains\nthe key and certificate that SZTPD should use to authenticate itself to the\nRDBMS.  These parameters must be specified together, and must be specified\nin conjunction with the "cacert" parameter.\n\nThe "database-url" argument has the form "<dialect>:<dialect-specific-path>".\nThree dialects are supported: "sqlite", "postgresql", and "mysql+pymysql".\nThe dialect-specific-path for each of these is described below.\n\nFor the "sqlite" dialect, <dialect-specific-path> follows the format\n"///<sqlite-path>", where <sqlite-path> can be one of:\n\n  :memory:    - an in-memory database (only useful for testing)\n  <filepath>  - an OS-specific filepath to a persisted database file\n\n  Examples:\n\n    $ sztpd sqlite:///:memory:                      (memory)\n    $ sztpd sqlite:///relative/path/to/sztpd.db     (unix)\n    $ sztpd sqlite:////absolute/path/to/sztpd.db    (unix)\n    $ sztpd sqlite:///C:\\path\\to\\sztpd.db           (windows)\n\nFor both the "postgresql" and "mysql+pymysql" dialects, <dialect-specific-path>\nfollows the format "//<user>[:<passwd>]@<host>:<port>/<database-name>".\n\n  Examples:\n\n    The following two examples assume the database is called "sztpd" and\n    that the database server listens on the loopback address with no TLS.\n\n      $ sztpd ***localhost:3306/sztpd\n      $ sztpd ***localhost:5432/sztpd\n\n\nPlease see the documentation for more information.\n');A.add_argument('-v','--version',help='show version number and exit.',action='version',version=__version__);A.add_argument('-C','--cacert',help='path to certificates used to authenticate the database (see below for details).');A.add_argument('-c','--cert',help='path to cert used to authenticate SZTPD to the database (see below for details).');A.add_argument('-k','--key',help='path to key used to authenticate SZTPD to the database (see below for details).');A.add_argument('database_url',help='see below for details.',metavar='database-url');B=A.parse_args();return sztpd.run(B.database_url,B.cacert,B.cert,B.key)
2023-02-20T16:54:58.2997455Z �[36mbootstrap_1  |�[0m                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-02-20T16:54:58.2998891Z �[36mbootstrap_1  |�[0m   File "/usr/local/lib/python3.11/site-packages/sztpd/sztpd.py", line 45, in run
2023-02-20T16:54:58.2999645Z �[36mbootstrap_1  |�[0m     except Exception as F:print('yangcore.init() threw exception: '+F.__class__.__name__);print(str(F));raise F;return 1
2023-02-20T16:54:58.3000366Z �[36mbootstrap_1  |�[0m                                                                                                         ^^^^^^^
2023-02-20T16:54:58.3000994Z �[36mbootstrap_1  |�[0m   File "/usr/local/lib/python3.11/site-packages/sztpd/sztpd.py", line 44, in run
2023-02-20T16:54:58.3001711Z �[36mbootstrap_1  |�[0m     try:E,C=yangcore.init(sztpd_firsttime_callback,db_url,cacert_param,cert_param,key_param)
2023-02-20T16:54:58.3002300Z �[36mbootstrap_1  |�[0m             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-02-20T16:54:58.3002912Z �[36mbootstrap_1  |�[0m   File "/usr/local/lib/python3.11/site-packages/sztpd/yangcore/yangcore.py", line 30, in init
2023-02-20T16:54:58.3003518Z �[36mbootstrap_1  |�[0m     except Exception as A:raise A
2023-02-20T16:54:58.3004378Z �[36mbootstrap_1  |�[0m                           ^^^^^^^
2023-02-20T16:54:58.3004902Z �[36mbootstrap_1  |�[0m   File "/usr/local/lib/python3.11/site-packages/sztpd/yangcore/yangcore.py", line 29, in init
2023-02-20T16:54:58.3005370Z �[36mbootstrap_1  |�[0m     try:G=DataAccessLayer(F,B,C,D,json.loads(L()),K)
2023-02-20T16:54:58.3005743Z �[36mbootstrap_1  |�[0m           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-02-20T16:54:58.3006172Z �[36mbootstrap_1  |�[0m   File "/usr/local/lib/python3.11/site-packages/sztpd/yangcore/dal.py", line 81, in __init__
2023-02-20T16:54:58.3006609Z �[36mbootstrap_1  |�[0m     else:A.app_ns=app_ns;A._create(B,C,D,E,F,opaque)
2023-02-20T16:54:58.3006973Z �[36mbootstrap_1  |�[0m                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-02-20T16:54:58.3007586Z �[36mbootstrap_1  |�[0m   File "/usr/local/lib/python3.11/site-packages/sztpd/yangcore/dal.py", line 669, in _create
2023-02-20T16:54:58.3008035Z �[36mbootstrap_1  |�[0m     else:A.dm=yangson.DataModel(json.dumps(G),[L])
2023-02-20T16:54:58.3008402Z �[36mbootstrap_1  |�[0m               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-02-20T16:54:58.3008833Z �[36mbootstrap_1  |�[0m   File "/usr/local/lib/python3.11/site-packages/yangson/datamodel.py", line 82, in __init__
2023-02-20T16:54:58.3009285Z �[36mbootstrap_1  |�[0m     self.schema_data = SchemaData(self.yang_library, mod_path)
2023-02-20T16:54:58.3009668Z �[36mbootstrap_1  |�[0m                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-02-20T16:54:58.3010113Z �[36mbootstrap_1  |�[0m   File "/usr/local/lib/python3.11/site-packages/yangson/schemadata.py", line 110, in __init__
2023-02-20T16:54:58.3010517Z �[36mbootstrap_1  |�[0m     self._from_yang_library(yang_lib)
2023-02-20T16:54:58.3010996Z �[36mbootstrap_1  |�[0m   File "/usr/local/lib/python3.11/site-packages/yangson/schemadata.py", line 141, in _from_yang_library
2023-02-20T16:54:58.3011429Z �[36mbootstrap_1  |�[0m     mod = self._load_module(name, rev, mdata)
2023-02-20T16:54:58.3011775Z �[36mbootstrap_1  |�[0m           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-02-20T16:54:58.3012296Z �[36mbootstrap_1  |�[0m   File "/usr/local/lib/python3.11/site-packages/yangson/schemadata.py", line 186, in _load_module
2023-02-20T16:54:58.3012703Z �[36mbootstrap_1  |�[0m     raise ModuleNotFound(name, rev)
2023-02-20T16:54:58.3013146Z �[36mbootstrap_1  |�[0m yangson.exceptions.ModuleNotFound: wn-app@wn-app-rpcs@2022-05-26.yang
2023-02-20T16:54:58.4518505Z ##[group]Run docker-compose down --volumes --remove-orphans
2023-02-20T16:54:58.4518860Z �[36;1mdocker-compose down --volumes --remove-orphans�[0m

@renovate renovate bot changed the title Update dependency sztpd to v0.0.14 Update dependency sztpd to v0.0.15 Feb 24, 2023
Copy link
Member

@glimchb glimchb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, after few iterations with maintainers, we made it work!

@glimchb glimchb merged commit 47874e1 into main Feb 24, 2023
@glimchb glimchb deleted the renovate/sztpd-0.x branch February 24, 2023 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant