Hello Matthias,
Regarding the software versions:
[root@honeybee plans]# /usr/local/lib/pulp/bin/pip list
Package Version
-------------------------------------------------------
pulp-2to3-migration 0.11.0
pulpcore 3.12.0
pulp-cli 0.7.0
Looks like I could do some upgrading. I tried to upgrade the
pulp.pulp_installer, but that bombed (see separate email).
Regarding the cached api-spec, I ran pulp status. There is no mention of
any api being outdated or refreshing (see attached output
20210505_pulp_status.txt
I have also re-run the migration plan create with -vvv . The output is
attached as 20210505_pulp_migration_create_vvv.txt . I hope it means
more to you than it does to me.
Ben Stanley.
On 4/5/21 6:58 pm, Matthias Dellweg wrote:
Hello again.
The pulp cli is using requests to talk to your server. I seems like
pointing the environment variable |REQUESTS_CA_BUNDLE| to the full
path of a copy of the file you may find as '/etc/pulp/certs/root.crt'
or '/etc/pulp/certs/ca.crt' tells requests to use the provided root
certificate.
On Tue, May 4, 2021 at 10:28 AM Matthias Dellweg <[email protected]
<mailto:[email protected]>> wrote:
Hello Stan,
thank you for reporting this. First of all, you are right about
the `--plan`. Are you willing to send a PR for that mistake?
Let me first ask you the typical support questions: Which version
of the migration plugin and the CLI is this?
The error looks to me like the CLI get's an unexpected answer from
the server, and that can have multiple reasons.
1. the cached api-spec of the CLI is outdated. Please run `pulp
<...> status` and look for "Notice: Cached api is outdated.
Refreshing...". After that, try again.
2. the server does not reply in the way, it's api-spec promises
3. something in the reverse proxy garbles the result
Can you please try to rerun your command with `pulp -vvv
--no-verify-ssl --username USERNAME ...` to add some debugging
output. It will show you the requests sent to the server as well
as the responses. I hope this can give some insight.
On Tue, May 4, 2021 at 2:18 AM Ben Stanley <[email protected]
<mailto:[email protected]>> wrote:
Hello pulp-list,
I am attempting to migrate my pulp2 to pulp3.
I seem to be facing difficulties at every step.
After overcoming the initial difficulties of installation, I
am now up to trying to migrate the data. Looking at the
migration documentation:
https://pulp-2to3-migration.readthedocs.io/en/latest/workflows.html
<https://pulp-2to3-migration.readthedocs.io/en/latest/workflows.html>
I note that the command in the documentation is incorrect:
[root@honeybee plans]# *pulp --no-verify-ssl --username
*/*USERNAME*/*--password */*PASSWORD*/*migration plan create
plan='{"plugins": [{"type": "iso"}]}'*
Usage: pulp migration plan create [OPTIONS]
Try 'pulp migration plan create --help' for help.
Error: Missing option '--plan'.
[root@honeybee plans]#
The documentation should be corrected to use --plan=<stuff>
instead of plan=<stuff> .
Even after I corrected the command to use --plan=<stuff>, I
got a huge error message.
root@honeybee plans]# *pulp --no-verify-ssl --username
*/*USERNAME*/*--password */*PASSWORD*/*migration plan create
--plan='{"plugins": [{"type": "iso"}]}'*
Traceback (most recent call last):
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/pulpcore/cli/common/openapi.py",
line 219, in parse_response
response_spec =
method_spec["responses"][str(response.status_code)]
KeyError: '200'
During handling of the above exception, another exception
occurred:
Traceback (most recent call last):
File "/usr/local/bin/pulp", line 8, in <module>
sys.exit(main())
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/click/core.py",
line 829, in __call__
return self.main(*args, **kwargs)
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/click/core.py",
line 782, in main
rv = self.invoke(ctx)
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/click/core.py",
line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/click/core.py",
line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/click/core.py",
line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/click/core.py",
line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/click/core.py",
line 610, in invoke
return callback(*args, **kwargs)
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/click/decorators.py",
line 73, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/click/core.py",
line 610, in invoke
return callback(*args, **kwargs)
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/click/decorators.py",
line 73, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/click/core.py",
line 610, in invoke
return callback(*args, **kwargs)
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/pulpcore/cli/common/generic.py",
line 287, in callback
result = entity_ctx.create(body=body)
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/pulpcore/cli/common/context.py",
line 364, in create
self.CREATE_ID, parameters=_parameters, body=body,
non_blocking=non_blocking
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/pulpcore/cli/common/context.py",
line 129, in call
result = self.api.call(operation_id, *args, **kwargs)
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/pulpcore/cli/common/openapi.py",
line 284, in call
return self.parse_response(method_spec, response)
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/pulpcore/cli/common/openapi.py",
line 222, in parse_response
response_spec = method_spec["responses"][str(100 *
int(response.status_code / 100))]
KeyError: '200'
[root@honeybee plans]#
What do I need to fix to proceed with my migration?
And I'd also like to know how I can get it to work without
having to specify --no-verify-ssl . Note that I have a
self-signed certificate. I don't mind pointing the pulp
command to the self-signed certificate file so that it will
accept it, but I don't know how to do that.
Thanks,
Ben Stanley.
_______________________________________________
Pulp-list mailing list
[email protected] <mailto:[email protected]>
https://listman.redhat.com/mailman/listinfo/pulp-list
<https://listman.redhat.com/mailman/listinfo/pulp-list>
[root@honeybee plans]# pulp --no-verify-ssl --username USERNAME --password
PASSWORD status
{
"versions": [
{
"component": "core",
"version": "3.12.0"
},
{
"component": "pulp_2to3_migration",
"version": "0.11.0"
},
{
"component": "rpm",
"version": "3.10.0"
},
{
"component": "python",
"version": "3.2.0"
},
{
"component": "file",
"version": "1.7.0"
},
{
"component": "deb",
"version": "2.11.1"
},
{
"component": "container",
"version": "2.5.1"
},
{
"component": "ansible",
"version": "0.7.2"
}
],
"online_workers": [
{
"pulp_created": "2021-04-26T07:54:47.574257Z",
"pulp_href": "/pulp/api/v3/workers/7473708a-39b1-4f5d-9c29-c088e78c72c5/",
"name": "resource-manager",
"last_heartbeat": "2021-05-05T06:12:13.313296Z"
},
{
"pulp_created": "2021-04-28T08:11:01.547753Z",
"pulp_href": "/pulp/api/v3/workers/3de037bd-ba47-4865-87da-10e9e80307ee/",
"name": "1488@honeybee",
"last_heartbeat": "2021-05-05T06:12:14.012682Z"
},
{
"pulp_created": "2021-04-28T08:11:01.533333Z",
"pulp_href": "/pulp/api/v3/workers/4ba311d2-ceaf-4911-8288-a5dbdf98fb84/",
"name": "1491@honeybee",
"last_heartbeat": "2021-05-05T06:12:14.213033Z"
}
],
"online_content_apps": [
{
"name": "2860@honeybee",
"last_heartbeat": "2021-05-05T06:12:14.228080Z"
},
{
"name": "2869@honeybee",
"last_heartbeat": "2021-05-05T06:12:14.228835Z"
},
{
"name": "2850@honeybee",
"last_heartbeat": "2021-05-05T06:12:14.229508Z"
},
{
"name": "2889@honeybee",
"last_heartbeat": "2021-05-05T06:12:14.231637Z"
},
{
"name": "2884@honeybee",
"last_heartbeat": "2021-05-05T06:12:14.232399Z"
},
{
"name": "2857@honeybee",
"last_heartbeat": "2021-05-05T06:12:14.231899Z"
},
{
"name": "2868@honeybee",
"last_heartbeat": "2021-05-05T06:12:14.232439Z"
},
{
"name": "2848@honeybee",
"last_heartbeat": "2021-05-05T06:12:14.234027Z"
}
],
"database_connection": {
"connected": true
},
"redis_connection": {
"connected": true
},
"storage": {
"total": 2734820425728,
"used": 2660644564992,
"free": 74175860736
}
}
[root@honeybee plans]#
[root@honeybee plans]# pulp -vvv --no-verify-ssl --username USERNAME --password
PASSWORD migration plan create --plan='{"plugins": [{"type": "iso"}]}'
post http://honeybee/pulp/api/v3/migration-plans/
Content-Type: application/json
Content-Length: 48
b'{"plan": "{\\"plugins\\": [{\\"type\\": \\"iso\\"}]}"}'
Response: 200
{"count":0,"next":null,"previous":null,"results":[]}
Traceback (most recent call last):
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/pulpcore/cli/common/openapi.py",
line 219, in parse_response
response_spec = method_spec["responses"][str(response.status_code)]
KeyError: '200'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/pulp", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/pulp/lib64/python3.6/site-packages/click/core.py", line
829, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/pulp/lib64/python3.6/site-packages/click/core.py", line
782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/pulp/lib64/python3.6/site-packages/click/core.py", line
1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/pulp/lib64/python3.6/site-packages/click/core.py", line
1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/pulp/lib64/python3.6/site-packages/click/core.py", line
1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/pulp/lib64/python3.6/site-packages/click/core.py", line
1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/pulp/lib64/python3.6/site-packages/click/core.py", line
610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/pulp/lib64/python3.6/site-packages/click/decorators.py",
line 73, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/local/lib/pulp/lib64/python3.6/site-packages/click/core.py", line
610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/pulp/lib64/python3.6/site-packages/click/decorators.py",
line 73, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/local/lib/pulp/lib64/python3.6/site-packages/click/core.py", line
610, in invoke
return callback(*args, **kwargs)
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/pulpcore/cli/common/generic.py",
line 287, in callback
result = entity_ctx.create(body=body)
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/pulpcore/cli/common/context.py",
line 364, in create
self.CREATE_ID, parameters=_parameters, body=body, non_blocking=non_blocking
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/pulpcore/cli/common/context.py",
line 129, in call
result = self.api.call(operation_id, *args, **kwargs)
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/pulpcore/cli/common/openapi.py",
line 284, in call
return self.parse_response(method_spec, response)
File
"/usr/local/lib/pulp/lib64/python3.6/site-packages/pulpcore/cli/common/openapi.py",
line 222, in parse_response
response_spec = method_spec["responses"][str(100 * int(response.status_code
/ 100))]
KeyError: '200'
[root@honeybee plans]#
_______________________________________________
Pulp-list mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/pulp-list