Bug #2857

Check is ocsweb.virtualmachine exists before trying to import VM

Added by walid almost 10 years ago. Updated almost 10 years ago.

Status:ClosedStart date:06/14/2011
Priority:NormalDue date:
Assignee:moyo% Done:

100%

Category:Export / Import
Target version:0.80.1

Description

On OCS < 1.3, virtualmachine table doesn't exists, so I got the following error (here on GLPI 0.83, but the same with 0.80)

2011-06-13 20:29 [2@antares]
*** MySQL query error : 
***
SQL: SELECT *
                FROM `virtualmachines`
                WHERE `HARDWARE_ID` = \'2621\'
Error: Table 'ocsweb_daunat.virtualmachines' doesn't exist
Backtrace :
/home/walid/sources/svn-glpi/0.83/inc/ocsserver.class.php&nbsp;:4485            DBmysql->query()
/home/walid/sources/svn-glpi/0.83/inc/ocsserver.class.php&nbsp;:1779            OcsServer::updateVirtualMachines()
/home/walid/sources/svn-glpi/0.83/inc/ocsserver.class.php&nbsp;:1555            OcsServer::updateComputer()
/home/walid/sources/svn-glpi/0.83/inc/ocsserver.class.php&nbsp;:1183            OcsServer::importComputer()
/home/walid/sources/svn-glpi/0.83/front/ocsng.import.php&nbsp;:80               OcsServer::processComputer()
/home/walid/sources/svn-glpi/0.83/front/ocsng.import.php


Related issues

Related to GLPI-PROJECT - Bug #2833: URL to access ocseports changed since 2.0 Closed 06/01/2011

Associated revisions

Revision 14786
Added by moyo almost 10 years ago

[0.80] Check is ocsweb.virtualmachine exists before trying to import VM fixed #2857

Revision 14787
Added by moyo almost 10 years ago

Check is ocsweb.virtualmachine exists before trying to import VM see #2857

History

#1 Updated by walid almost 10 years ago

related to #2833 : if we store the ocs's version, then we can easily filter

#2 Updated by moyo almost 10 years ago

  • Category changed from Inventory to Export / Import

#3 Updated by moyo almost 10 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r14786.

#4 Updated by moyo almost 10 years ago

  • Assignee changed from walid to moyo

#5 Updated by moyo almost 10 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF