[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Pulp-list] QE Build: 2.1.0-0.3.alpha



- Run: pulp-v1-upgrade
   QE should check out the --help. Those options aren't really intended for end users to care about,
but for testing purposes they might be handy. In particular, please run with the flag to backup the
v1 database. That will help me if I need to debug any issues.


V1 allowed consumer-ids like 'hostname.domain.tld', V2 doesn't permit '.' anymore and the upgrade fails:

Do you mean consumer IDs or user logins? The upgrade looks like it tanked during the users upgrade.

I know in v2 we currently can't allow periods in a username due to the way the way it was implemented and a Mongo restriction. I assumed the same restriction existed in v1, but that appears to be incorrect.

I'll take a look into this later on today and see what I can do about it.

Thanks!

Upgrading: Users, Permissions, and Roles
Traceback (most recent call last):
   File "/usr/bin/pulp-v1-upgrade", line 50, in <module>
     upgrader.upgrade()
   File "/usr/lib/python2.6/site-packages/pulp/server/upgrade/main.py", line 187, in upgrade
     self._upgrade_database()
   File "/usr/lib/python2.6/site-packages/pulp/server/upgrade/main.py", line 228, in _upgrade_database
     report = db_call(v1_database, tmp_database)
   File "/usr/lib/python2.6/site-packages/pulp/server/upgrade/db/users.py", line 20, in upgrade
     _permissions(v1_database, v2_database)
   File "/usr/lib/python2.6/site-packages/pulp/server/upgrade/db/users.py", line 75, in _permissions
     v2_coll.insert(v2_permissions_to_add, safe=True)
   File "/usr/lib64/python2.6/site-packages/pymongo/collection.py", line 270, in insert
     check_keys, safe, kwargs), safe)
   File "/usr/lib64/python2.6/site-packages/pymongo/message.py", line 67, in insert
     bson_data = "".join([bson.BSON.encode(doc, check_keys) for doc in docs])
   File "/usr/lib64/python2.6/site-packages/bson/__init__.py", line 462, in encode
     return cls(_dict_to_bson(document, check_keys))
bson.errors.InvalidDocument: key 'hostname.domain.tld' must not contain '.'


Ping me with any questions/issues, just don't expect me to be happy about it  :)


done.


regards,
-ap



--
Jay Dobies
Freenode: jdob @ #pulp
http://pulpproject.org


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]