New issue
Advanced search Search tips

Issue 731806 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Dec 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

ACL issues with hosts

Project Member Reported by haddowk@chromium.org, Jun 9 2017

Issue description

AclAccessViolation: moblab does not have access to 192.168.231.106
Traceback (most recent call last):
  File "/usr/local/autotest/frontend/afe/json_rpc/serviceHandler.py", line 120, in dispatchRequest
    results['result'] = self.invokeServiceEndpoint(meth, args)
  File "/usr/local/autotest/frontend/afe/json_rpc/serviceHandler.py", line 160, in invokeServiceEndpoint
    return meth(*args)
  File "/usr/local/autotest/frontend/afe/rpc_handler.py", line 270, in new_fn
    return f(*args, **keyword_args)
  File "/usr/local/autotest/frontend/afe/rpc_utils.py", line 1160, in replacement
    return func(**kwargs)
  File "/usr/local/autotest/frontend/afe/rpc_interface.py", line 378, in modify_hosts
    host.update_object(update_data)
  File "/usr/local/autotest/frontend/afe/model_logic.py", line 692, in update_object
    self.save()
  File "/usr/local/autotest/frontend/afe/models.py", line 624, in save
    AclGroup.check_for_acl_violation_hosts([self])
  File "/usr/local/autotest/frontend/afe/models.py", line 971, in check_for_acl_violation_hosts
    (str(user), str(host)))
AclAccessViolation: moblab does not have access to 192.168.231.106

 
Device got stuck in forced lock by apache - we should provide a fix for this.

MariaDB [chromeos_autotest_db]> select * from afe_hosts;
+----+-----------------+--------+---------------+---------+------------+--------------+---------------------+-------+--------+----------+--------------------------------+----------+
| id | hostname        | locked | status        | invalid | protection | locked_by_id | lock_time           | dirty | leased | shard_id | lock_reason                    | synch_id |
+----+-----------------+--------+---------------+---------+------------+--------------+---------------------+-------+--------+----------+--------------------------------+----------+
|  1 | 192.168.231.101 |      0 | Repair Failed |       1 |          0 |         NULL | NULL                |     1 |      1 |     NULL |                                |     NULL |
|  2 | 192.168.231.100 |      0 | Running       |       0 |          0 |         NULL | NULL                |     1 |      1 |     NULL |                                |     NULL |
|  3 | 192.168.231.102 |      0 | Provisioning  |       0 |          0 |         NULL | NULL                |     1 |      1 |     NULL |                                |     NULL |
|  4 | 192.168.231.103 |      0 | Running       |       0 |          0 |         NULL | NULL                |     1 |      1 |     NULL |                                |     NULL |
|  5 | 192.168.231.104 |      0 | Running       |       0 |          0 |         NULL | NULL                |     1 |      1 |     NULL |                                |     NULL |
|  6 | 192.168.231.105 |      1 | Ready         |       0 |          0 |            2 | 2017-06-09 11:05:10 |     1 |      1 |     NULL | Forced lock on device creation |     NULL |
|  7 | 192.168.231.106 |      0 | Ready         |       0 |          0 |         NULL | NULL                |     1 |      0 |     NULL |                                |     NULL |
+----+-----------------+--------+---------------+---------+------------+--------------+---------------------+-------+--------+----------+--------------------------------+----------+
7 rows in set (0.00 sec)

MariaDB [chromeos_autotest_db]> select * from auth_user 
auth_user                                 auth_user.id                              auth_user.last_login                      auth_user_groups                          auth_user_user_permissions                
auth_user.date_joined                     auth_user.is_active                       auth_user.last_name                       auth_user_groups.group_id                 auth_user_user_permissions.id             
auth_user.email                           auth_user.is_staff                        auth_user.password                        auth_user_groups.id                       auth_user_user_permissions.permission_id  
auth_user.first_name                      auth_user.is_superuser                    auth_user.username                        auth_user_groups.user_id                  auth_user_user_permissions.user_id        
MariaDB [chromeos_autotest_db]> select * from auth_user;
+----+-----------------------+---------------------+--------------+----------+------------+-----------+-------+----------+-----------+---------------------+
| id | password              | last_login          | is_superuser | username | first_name | last_name | email | is_staff | is_active | date_joined         |
+----+-----------------------+---------------------+--------------+----------+------------+-----------+-------+----------+-----------+---------------------+
|  1 | apache authentication | 2017-06-09 11:20:39 |            0 | moblab   |            |           |       |        1 |         1 | 2017-06-09 09:37:10 |
|  2 | apache authentication | 2017-06-09 11:05:28 |            0 | apache   |            |           |       |        1 |         1 | 2017-06-09 10:31:29 |

Labels: -Pri-1 Pri-2
Components: Infra>Client>ChromeOS
Status: Archived (was: Untriaged)

Sign in to add a comment