[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



On 05.02.2013 22:22, Jay Dobies wrote:
> 
> - 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:

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


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