Skip to content

Instantly share code, notes, and snippets.

View AlanCoding's full-sized avatar

Alan Rominger AlanCoding

  • Red Hat
  • Durham, NC
View GitHub Profile
# -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-03-12 17:44
from __future__ import unicode_literals
import awx.main.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
(awx) [root@awx awx_devel]# ms_print massif.out.3092
--------------------------------------------------------------------------------
Command: python manage.py
Massif arguments: (none)
ms_print arguments: massif.out.3092
--------------------------------------------------------------------------------
MB
101.3^ :
In [15]: [e for e in inv.groups.values_list('id', 'total_groups').order_by('tota
...: l_groups')]
Out[15]:
[(1405, 0),
(1410, 1),
(1411, 2),
(1412, 3),
(1413, 4),
(1414, 5),
(1415, 6),
awx_1 | 2018-03-23 13:45:04,288 INFO awx.main.tasks time to get the wait lock 0.00061297416687 result True
awx_1 | 2018-03-23 13:45:04,289 INFO awx.main.tasks time to get the compute lock 0.000509977340698 result True
awx_1 | 2018-03-23 13:45:04,296 DEBUG awx.main.models.inventory Going to update inventory computed fields
awx_1 | 2018-03-23 13:45:04,301 INFO awx.main.tasks time to get the wait lock 0.000384092330933 result True
awx_1 | 2018-03-23 13:45:04,332 INFO awx.main.tasks time to get the wait lock 0.000421047210693 result False
awx_1 | 2018-03-23 13:45:04,332 DEBUG awx.main.tasks Another process waits to compute fields for inventory 42, exiting.
awx_1 | 2018-03-23 13:45:04,471 DEBUG awx.main.models.inventory Finished updating inventory computed fields in 0.175 seconds
awx_1 | 2018-03-23 13:45:04,472 INFO awx.main.tasks time to get the compute lock 0.170789003372 result True
awx_1 | 2018-03-23 13:45:04,476 DEBUG
awx_1 | 2018-03-23 14:59:47,497 DEBUG awx.main.models.inventory Going to update inventory computed fields
awx_1 | 2018-03-23 14:59:47,537 DEBUG awx.main.models.inventory Going to update inventory computed fields
awx_1 | 2018-03-23 14:59:47,776 DEBUG awx.main.models.inventory Finished updating inventory computed fields 0.238691091537
awx_1 | 2018-03-23 14:59:47,793 DEBUG awx.main.models.inventory Finished updating inventory computed fields 0.296192884445
awx_1 | 2018-03-23 14:59:50,323 DEBUG awx.main.models.inventory Going to update inventory computed fields
awx_1 | 2018-03-23 14:59:50,335 DEBUG awx.main.models.inventory Going to update inventory computed fields
awx_1 | 2018-03-23 14:59:50,339 DEBUG awx.main.models.inventory Going to update inventory computed fields
awx_1 | 2018-03-23 14:59:50,363 DEBUG awx.main.models.inventory Going to update inventory computed fields
awx_1 | 2018-03-23 14:59:50,378 DEBUG awx.main.model
{
"count": 4,
"next": null,
"previous": null,
"results": [
{
"id": 57,
"type": "activity_stream",
"url": "/api/v2/activity_stream/57/",
"related": {
{
"id": 66885,
"type": "inventory_update_event",
"url": "",
"related": {
"inventory_update": "/api/v2/inventory_updates/249/"
},
"summary_fields": {},
"created": "2018-03-28T14:46:03.267390Z",
"modified": "2018-03-28T14:46:03.267449Z",
$ INVENTORY_STDERR=5000000 time ansible-inventory -i scripts/large/stderr_and_fail.py --list
[WARNING]: * Failed to parse /Users/alancoding/Documents/repos/ansible-inventory-file-examples/scripts/large/stderr_and_fail.py with script plugin: failed to parse
executable inventory script results from /Users/alancoding/Documents/repos/ansible-inventory-file-examples/scripts/large/stderr_and_fail.py: Syntax Error while
loading YAML. found unexpected end of stream The error appears to have been in '/Users/alancoding/Documents/repos/ansible-inventory-file-
examples/scripts/large/stderr_and_fail.py': line 2, column 1, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to
be: #!/usr/bin/env python # -*- coding: utf-8 -*- ^ here Xau0PtWI5wvYx4iROknCSqp0nstnaM+4SX+SsSaHoRWwknJ8z0TpOjRLtznm3NtnE8tAwTnEPTyzWA9Cn36mnIJKOwOj+3g6/cRVFPUKfiT
EbE1pvtjt02AA3RuGUEVt2Jvtq2pDrDXSC4a/5rgCdeYKEa3lAOaNezouIIM0SX7NMspvHC7++osuSOJZX1JM2JnZAROSv55biWOsPDjBKGwVfYdofo4/reyrFm97C8Awrgp
{
"name": "Instances",
"description": "# List Instances:\n\nMake a GET request to this resource to retrieve the list of\ninstances.\n\nThe resulting data structure contains:\n\n {\n \"count\": 99,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n ...\n ]\n }\n\nThe `count` field indicates the total number of instances\nfound for the given query. The `next` and `previous` fields provides links to\nadditional results if there are more than will fit on a single page. The\n`results` list contains zero or more instance records. \n\n## Results\n\nEach instance data structure includes the following fields:\n\n* `id`: Database ID for this instance. (integer)\n* `type`: Data type for this instance. (choice)\n* `url`: URL for this instance. (string)\n* `related`: Data structure with URLs of related resources. (object)\n* `uuid`: (string)\n* `hostname`: (string)\n* `created`: Timestamp when this instance was created. (datetime)\n* `modified`: Time
{
"name": "Job Template List",
"description": "# List Job Templates:\n\nMake a GET request to this resource to retrieve the list of\njob templates.\n\nThe resulting data structure contains:\n\n {\n \"count\": 99,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n ...\n ]\n }\n\nThe `count` field indicates the total number of job templates\nfound for the given query. The `next` and `previous` fields provides links to\nadditional results if there are more than will fit on a single page. The\n`results` list contains zero or more job template records. \n\n## Results\n\nEach job template data structure includes the following fields:\n\n* `id`: Database ID for this job template. (integer)\n* `type`: Data type for this job template. (choice)\n* `url`: URL for this job template. (string)\n* `related`: Data structure with URLs of related resources. (object)\n* `summary_fields`: Data structure with name/description for related resources. (object)\n*