Bug 701320
Summary: | Problem with Oracle to Postgresql migration in 1.4 | ||
---|---|---|---|
Product: | [Community] Spacewalk | Reporter: | benjamin.allot-ext |
Component: | Server | Assignee: | Michael Mráka <mmraka> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | 1.4 | CC: | jpazdziora |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-07-25 19:03:16 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 723481 |
Description
benjamin.allot-ext
2011-05-02 15:17:18 UTC
After a bit more research, the org_string row is present in the dump extracted from Oracle XE. Here the extract from the dump about rhntemplatecategory table : -- Types for rhntemplatecategory: DOUBLE PRECISION VARCHAR2 VARCHAR2 DATE DATE copy rhntemplatecategory(id,label,description,created,modified) from stdin; 1 org_strings Organization specific strings. 2011-01-20 12:46:10 2011-01-20 12:46:10 2 email_strings Strings appearing in e-mail sent to users. 2011-01-20 12:46:10 2011-01-20 12:46:10 \. And after the import : -bash-3.2$ psql spaceschema psql (8.4.7) Type "help" for help. spaceschema=# select * from rhntemplatecategory; id | label | description | created | modified ----+-------+-------------+---------+---------- (0 rows) As I said previously, during the import, only this message occurs : ---------------------------------------------------------- ERROR: invalid byte sequence for encoding "LATIN1": 0x00 HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding". CONTEXT: COPY rhnpackagerepodata, line 1: "1057 \x1fÂ\x08\x00\x00\x00\x00\x00\x00\x00ÂUMsÃ0\x10½÷WhtJ¦Âü\x015NÃöL¤34¡%9ôà \x08..." STATEMENT: copy rhnpackagerepodata(package_id,primary_xml,filelist,other,created,modified) from stdin; ----------------------------------------------------------- I think this is only a problem related to postgresql NULL content behaviour from the metadata stored in the database. Therefore, the import is stopped and the database is half filled. I found no hint on how to fix the issue at https://fedorahosted.org/spacewalk/wiki/PostgreSQLPortingGuide Aligning under space16. I believe the problem with the rhnpackagerepodata was addressed in Spacewalk master, fe0f87bd13c9c4e9479a85cedc8e5c5f06720d9a, spacewalk-utils-1.5.4-1, based on thread https://www.redhat.com/archives/spacewalk-list/2011-July/msg00081.html Closing as CURRENTRELEASE with Spacewalk 1.5 released, please reopen if the bug still happens for you. |