Project

Profile

Help

Issue #8669

Temp files are showing up in /var/lib/pulp instead of under /var/lib/pulp/tmp

Added by iballou 13 days ago. Updated 12 days ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Sprint 96
Quarter:

Description

I'm guessing these files should be under the WORKING_DIRECTORY ?

[root@centos7-katello-4-0 tmp]# ls -al /var/lib/pulp/
total 142208
drwxrwxr-x.  8 pulp pulp      226 Apr 29 21:22 .
drwxr-xr-x. 43 root root     4096 Mar  9 18:37 ..
drwxr-xr-x.  6 pulp pulp       78 Mar  8 20:07 assets
-rw-------.  1 pulp pulp       50 Mar 16 18:15 .bash_history
drwxrwx---.  2 pulp pulp        6 Mar  8 20:06 exports
drwxrwx---.  2 pulp pulp        6 Mar  8 20:06 imports
drwxr-x---.  4 pulp pulp       36 Mar  9 15:17 media
drwxrwx---.  2 pulp pulp        6 Mar  8 20:06 sync_imports
drwxr-x---. 31 pulp pulp     4096 Apr 29 21:21 tmp
-rw-------.  1 pulp pulp  6769256 Apr 29 21:22 tmp1wztq4om
-rw-------.  1 pulp pulp 73623376 Apr 23 15:29 tmp54fn89ia
-rw-------.  1 pulp pulp   560316 Apr 26 18:58 tmp5uzhc53i
-rw-------.  1 pulp pulp 55129656 Apr 29 21:22 tmpah11l33n
-rw-------.  1 pulp pulp  9514120 Apr 23 15:29 tmpshv1wpe5
-rw-------.  1 pulp pulp      642 Mar 16 15:44 .viminfo

My Pulp config:

[root@centos7-katello-4-0 tmp]# sudo -u pulp PULP_SETTINGS='/etc/pulp/settings.py' DJANGO_SETTINGS_MODULE='pulpcore.app.settings'  dynaconf list
Django app detected
Working in development environment 
BASE_DIR '/usr/lib/python3.6/site-packages/pulpcore/app'
DEBUG False
ALLOWED_HOSTS ['*']
MEDIA_ROOT '/var/lib/pulp/media'
ADMIN_SITE_URL 'admin/'
STATIC_URL '/pulp/assets/'
STATIC_ROOT '/var/lib/pulp/assets'
DEFAULT_FILE_STORAGE 'pulpcore.app.models.storage.FileSystem'
FILE_UPLOAD_TEMP_DIR '/var/lib/pulp/tmp'
WORKING_DIRECTORY '/var/lib/pulp/tmp'
CHUNKED_UPLOAD_DIR 'upload'
FILE_UPLOAD_HANDLERS ['pulpcore.app.files.HashingFileUploadHandler']
SECRET_KEY '6gbTkYUSeo37exeMqJuQYeu5EVz8v2yQq2bEsm4xc6bCLwziYV'
INSTALLED_APPS ['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'import_export',
 'django_filters',
 'django_guid',
 'drf_spectacular',
 'guardian',
 'rest_framework',
 'pulpcore.app',
 'pulp_rpm.app.PulpRpmPluginAppConfig',
 'pulp_file.app.PulpFilePluginAppConfig',
 'pulp_deb.app.PulpDebPluginAppConfig',
 'pulp_container.app.PulpContainerPluginAppConfig',
 'pulp_certguard.app.PulpCertGuardPluginAppConfig',
 'django_readonly_field']
INSTALLED_PULP_PLUGINS ['pulp_rpm', 'pulp_file', 'pulp_deb', 'pulp_container', 'pulp_certguard']
OPTIONAL_APPS ['crispy_forms', 'django_extensions', 'storages']
MIDDLEWARE ['django_guid.middleware.GuidMiddleware',
 'django.middleware.security.SecurityMiddleware',
 'whitenoise.middleware.WhiteNoiseMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'django_currentuser.middleware.ThreadLocalUserMiddleware']
AUTHENTICATION_BACKENDS ['pulpcore.app.authentication.PulpNoCreateRemoteUserBackend']
ROOT_URLCONF 'pulpcore.app.urls'
TEMPLATES [{'APP_DIRS': True,
  'BACKEND': 'django.template.backends.django.DjangoTemplates',
  'DIRS': ['/usr/lib/python3.6/site-packages/pulpcore/app/templates'],
  'OPTIONS': {'context_processors': ['django.template.context_processors.debug',
                                     'django.template.context_processors.request',
                                     'django.contrib.auth.context_processors.auth',
                                     'django.contrib.messages.context_processors.messages']}}]
WSGI_APPLICATION 'pulpcore.app.wsgi.application'
REST_FRAMEWORK {'DEFAULT_AUTHENTICATION_CLASSES': ['rest_framework.authentication.SessionAuthentication',
                                    'pulpcore.app.authentication.PulpRemoteUserAuthentication'],
 'DEFAULT_FILTER_BACKENDS': ['django_filters.rest_framework.DjangoFilterBackend'],
 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
 'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.IsAuthenticated'],
 'DEFAULT_SCHEMA_CLASS': 'pulpcore.openapi.PulpAutoSchema',
 'DEFAULT_VERSIONING_CLASS': 'rest_framework.versioning.URLPathVersioning',
 'PAGE_SIZE': 100,
 'UPLOADED_FILES_USE_URL': False,
 'URL_FIELD_NAME': 'pulp_href'}
AUTH_PASSWORD_VALIDATORS [{'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator'},
 {'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator'},
 {'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator'},
 {'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator'}]
LANGUAGE_CODE 'en-us'
TIME_ZONE 'UTC'
USE_I18N ['USE_I18N', True]
USE_L10N True
USE_TZ True
DATABASES {'default': {'ENGINE': 'django.db.backends.postgresql',
             'HOST': 'localhost',
             'NAME': 'pulpcore',
             'PASSWORD': 'Hf7WRWRNGED7jdPgJhGZG3P7Hqf5f382',
             'PORT': '5432',
             'USER': 'pulp'}}
LOGGING {'disable_existing_loggers': False,
 'filters': {'correlation_id': {'()': 'django_guid.log_filters.CorrelationId'}},
 'formatters': {'simple': {'format': 'pulp [%(correlation_id)s]: '
                                     '%(name)s:%(levelname)s: %(message)s'}},
 'handlers': {'console': {'class': 'logging.StreamHandler',
                          'filters': ['correlation_id'],
                          'formatter': 'simple'}},
 'loggers': {'': {'filters': ['correlation_id'],
                  'handlers': ['console'],
                  'level': 'INFO'}},
 'version': 1}
DRF_ACCESS_POLICY {'reusable_conditions': 'pulpcore.app.global_access_conditions'}
CONTENT_PATH_PREFIX '/pulp/content/'
CONTENT_APP_TTL 30
REMOTE_USER_ENVIRON_NAME 'HTTP_REMOTE_USER'
ALLOWED_IMPORT_PATHS ['/var/lib/pulp/sync_imports', '/var/lib/pulp/imports']
ALLOWED_EXPORT_PATHS ['/var/lib/pulp/exports']
PROFILE_STAGES_API False
SPECTACULAR_SETTINGS {'COMPONENT_NO_READ_ONLY_REQUIRED': True,
 'COMPONENT_SPLIT_REQUEST': True,
 'CONTACT': {'email': 'pulp-list@redhat.com',
             'name': 'Pulp Team',
             'url': 'https://pulpproject.org'},
 'DEFAULT_GENERATOR_CLASS': 'pulpcore.openapi.PulpSchemaGenerator',
 'DEFAULT_SCHEMA_CLASS': 'pulpcore.openapi.PulpAutoSchema',
 'DESCRIPTION': 'Fetch, Upload, Organize, and Distribute Software Packages',
 'LICENSE': {'name': 'GPLv2+',
             'url': 'https://raw.githubusercontent.com/pulp/pulpcore/master/LICENSE'},
 'SERVE_URLCONF': 'pulpcore.app.urls',
 'TITLE': 'Pulp 3 API',
 'VERSION': 'v3'}
ALLOWED_CONTENT_CHECKSUMS ['md5', 'sha1', 'sha224', 'sha256', 'sha384', 'sha512']
LOAD_DOTENV True
DEFAULT_SETTINGS_PATHS ['settings.py',
 'settings.toml',
 'settings.tml',
 'settings.yaml',
 'settings.yml',
 'settings.ini',
 'settings.conf',
 'settings.properties',
 'settings.json',
 '.secrets.py',
 '.secrets.toml',
 '.secrets.tml',
 '.secrets.yaml',
 '.secrets.yml',
 '.secrets.ini',
 '.secrets.conf',
 '.secrets.properties',
 '.secrets.json']
ALLOW_AUTOMATIC_UNSAFE_ADVISORY_CONFLICT_RESOLUTION False
CONTENT_HOST 'centos7-katello-4-0.cannolo.example.com'
CONTENT_ORIGIN 'https://centos7-katello-4-0.cannolo.example.com'
REDIS_DB 8
REDIS_HOST 'localhost'
REDIS_PORT '6379'
SECURE_PROXY_SSL_HEADER ['HTTP_X_FORWARDED_PROTO', 'https']
TOKEN_AUTH_DISABLED True
SETTINGS '/etc/pulp/settings.py'

Versions:

pulp-certguard (1.1.0)
pulp-cli (0.7.0)
pulp-container (2.2.1)
pulp-deb (2.8.0)
pulp-file (1.5.0)
pulp-rpm (3.10.0)
pulpcore (3.9.1)

Testing on Katello 4.0.

History

#1 Updated by iballou 13 days ago

Also, these files don't seem to be getting cleaned up. Should they be?

#2 Updated by fao89 12 days ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 95

#3 Updated by rchan 12 days ago

  • Sprint changed from Sprint 95 to Sprint 96

Please register to edit this issue

Also available in: Atom PDF