In this particular situation, which happens when the install fails and you disable a site, the site status is reported as Unknown status.

Comments

anarcat’s picture

Title: site status wrong when disabled and not installed » various site status issues

So another such issue:

Disabled and deleted sites are marked "Site not installed yet, Site disabled, Site deleted".

See also: http://drupal.org/node/331236

anarcat’s picture

Priority: Normal » Critical

We should fix the status mess for 0.2.

anarcat’s picture

Status: Active » Needs work

Some work has been done to simplify the error handling routines in drush and provision. The bitmask is gone (#414058: ditch the "status bitmaps") and errors are now arrays of strings in the ERROR_CODE drush context that get passed around.

But site statuses are probably still a mess. We especially need to make sure we migrate the site status from the bitmasks to the strings in the database, using an update_N function.

adrian’s picture

first things first. i don't think we need to keep track of whether a site has been imported or not, that said, we also don't care if it's been installed.

We care about :
1. is the site is in the queue to be either installed or imported
2. is the site active
3. has the site been disabled
4. has the site been deleted.

Sites can't be any 2 of these things at the same time, so i suggest keeping the status field, as is, but labelling these as
HOSTING_SITE_DELETED = -2,
HOSTING_SITE_DISABLED = -1,
HOSTING_SITE_QUEUED = 0,
HOSTING_SITE_ACTIVE = 1,

adrian’s picture

Status: Needs work » Fixed

Committed fix to HEAD.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.