Revision 896a03f6

b/NEWS
6 6

  
7 7
*(unreleased)*
8 8

  
9

  
10
Incompatible/important changes:
11

  
9 12
- The default of the ``/2/instances/[instance_name]/rename`` RAPI
10 13
  resource's ``ip_check`` parameter changed from ``True`` to ``False``
11 14
  to match the underlying LUXI interface
......
26 29
- The "cluster-verify" hooks are now executed per group by the
27 30
  OP_CLUSTER_VERIFY_GROUP opcode. This maintains the same behavior if
28 31
  you just run "gnt-cluster verify", which generates one op per group.
32
- The environment as passed to the OS scripts is cleared, and thus no
33
  environment variables defined in the node daemon's environment will be
34
  inherited by the scripts
29 35

  
30 36

  
31 37
Version 2.4.3
b/lib/backend.py
966 966
  logfile = _InstanceLogName("add", instance.os, instance.name)
967 967

  
968 968
  result = utils.RunCmd([inst_os.create_script], env=create_env,
969
                        cwd=inst_os.path, output=logfile,)
969
                        cwd=inst_os.path, output=logfile, reset_env=True)
970 970
  if result.failed:
971 971
    logging.error("os create command '%s' returned error: %s, logfile: %s,"
972 972
                  " output: %s", result.cmd, result.fail_reason, logfile,
......
999 999
                             "%s-%s" % (old_name, instance.name))
1000 1000

  
1001 1001
  result = utils.RunCmd([inst_os.rename_script], env=rename_env,
1002
                        cwd=inst_os.path, output=logfile)
1002
                        cwd=inst_os.path, output=logfile, reset_env=True)
1003 1003

  
1004 1004
  if result.failed:
1005 1005
    logging.error("os create command '%s' returned error: %s output: %s",
......
2752 2752

  
2753 2753
  validate_env = OSCoreEnv(osname, tbv, osparams)
2754 2754
  result = utils.RunCmd([tbv.verify_script] + checks, env=validate_env,
2755
                        cwd=tbv.path)
2755
                        cwd=tbv.path, reset_env=True)
2756 2756
  if result.failed:
2757 2757
    logging.error("os validate command '%s' returned error: %s output: %s",
2758 2758
                  result.cmd, result.fail_reason, result.output)
b/man/ganeti-os-interface.rst
30 30
of them might have extra ones. Note that all counts are
31 31
zero-based.
32 32

  
33
Since Ganeti version 2.5, the environment will be cleaned up before
34
being passed to scripts, therefore they will not inherit the environment
35
in with which the ganeti node daemon was started. If you depend on any
36
environment variables (non-Ganeti), then you will need to define or
37
source them appropriately.
38

  
33 39
OS_API_VERSION
34 40
    The OS API version that the rest of the environment conforms to.
35 41

  

Also available in: Unified diff