Skip to content

[BUG] php.cli tries to write on wrong php.ini file in Ubuntu 20.04 LTS #216

Open
@miquelbonastredreivip

Description

@miquelbonastredreivip

Your setup

Formula commit hash / release tag

I'm using tag v1.3.1 (80f9c94)

Also fails in master (efcd71f)

Versions reports (master & minion)

(I'm using marterless deployment in Vagrant)

Salt Version:
           Salt: 3002
 
Dependency Versions:
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: 2.7.3
      docker-py: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
         Jinja2: 2.10.1
        libgit2: 0.28.3
       M2Crypto: Not Installed
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.6.2
   mysql-python: 1.4.4
      pycparser: Not Installed
       pycrypto: Not Installed
   pycryptodome: 3.6.1
         pygit2: 1.0.3
         Python: 3.8.5 (default, Jul 28 2020, 12:59:40)
   python-gnupg: 0.4.5
         PyYAML: 5.3.1
          PyZMQ: 18.1.1
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.5.3
            ZMQ: 4.3.2
 
System Versions:
           dist: ubuntu 20.04 focal
         locale: utf-8
        machine: x86_64
        release: 5.4.0-51-generic
         system: Linux
        version: Ubuntu 20.04 focal

Pillar / config used

You can find example configuration here:

https://github.com/miquelbonastredreivip/php-formula-bugreport-20201026

Pillar info here:

https://raw.githubusercontent.com/miquelbonastredreivip/php-formula-bugreport-20201026/master/salt/pillar/php.sls


Bug details

Describe the bug

In Ubuntu 20.04 LTS, php.cli.ini fails when trying to modify php.ini file, with the following error:

ID: php_cli_ini
    Function: file.managed
        Name: /etc/php/7.2/cli/php.ini
      Result: False
     Comment: Parent directory not present
     Started: 14:23:37.740679
    Duration: 63.969 ms
     Changes:   

Steps to reproduce the bug

git clone https://github.com/miquelbonastredreivip/php-formula-bugreport-20201026
cd php-formula-bugreport-20201026
vagrant up

Expected behaviour

salt and php-formula should have modified file "/etc/php/7.4/cli/php.ini"

Attempts to fix the bug

It works in Ubuntu 18.04 LTS, so I'm still using this version.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions