- Nov 14, 2011
-
-
Michael Hanselmann authored
Commit b459a848 was supposed to replace all, but one was missed. Add a check to autotools/check-python-code. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Andrea Spadaccini <spadaccio@google.com>
-
- Nov 10, 2011
-
-
René Nussbaumer authored
This patch adds the new fields to the objects.py as well as defines the constants used in the dicts and their type. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Nov 08, 2011
-
-
Michael Hanselmann authored
I forgot to change this in commit d9da5065. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
I passed the timeout calculation function in the wrong field of the definition. A small change is also needed in “build-rpc” to not abort when writing the docstring. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
… instead of calling it with the whole results dictionary. This fixes an issue when replacing disks (and all other cases where result processors are used). Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Nov 07, 2011
-
-
Michael Hanselmann authored
Until now LUNodeSetParams would lock all instances if a node's secondary IP address was to be changed and would then release all instances it didn't actually need. With this patch the LU optimistically locks instances and, once it got the locks, checks whether they're still correct. This is similar to how node group locking is done. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
This avoids having to override the function in the RPC runner. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
This way the generated code no longer contains arbitrary code. Post-processing functions are used by reference. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
Until now “autotools/build-rpc” would read the definition of all RPCs and write them to a new file, “lib/_generated_rpc.py” with some modifications. With this patch the generated code loads the definitions and, at module load time, gets references to the actual definitions. Further patches will even remove the calls to the post-processing functions from the generated code. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This is in preparation to reducing the amount of generated code. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Andrea Spadaccini authored
- check if the master IP with the old netmask is up before attempting to change the netmask (to avoid a failed change netmask resulting in an undesired activation of the master IP); - improve error messages of the backend function; - in case of error, report the problem but otherwise change the cluster master_netmask parameter; - remove duplicate error feedback. Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Nov 04, 2011
-
-
Andrea Spadaccini authored
And also suppress pylint R0902 error about an object instance having more than 20 attributes. Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Andrea Spadaccini authored
If the cluster version is upgraded from a version before commit 5a8648eb to a version after that commit, the master startup will fail because the ssconf file with the master netmask will not be present, and it is read during the master voting process. This patch fixes this bug, making ssconf.GetMasterNetmask return a default netmask value, and also corrects the docstring of this method. Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
Useful for converting list of query fields to a dictionary and to convert RPC definitions. Includes duplicate detection. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This would have caught a bug introduced with the recent RPC changes. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Until now it would just call itself, eventually failing. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Nov 03, 2011
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Andrea Spadaccini <spadaccio@google.com>
-
Michael Hanselmann authored
This is needed to lock node resources. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
With this patch all RPC calls at runtime of masterd will show up in the lock monitor. There is a chicken-and-egg issue with initializing the configuration with a context since the lock manager, containing the monitor, requires the configuration. This is worked around by setting the config's context only once the lock monitor is available. Example: rpc/node19.example.com/write_ssconf_files Jq9/Job32/N_SET_PARAMjobqueue_update Jq2/Job27/C_VERIFY_CONFIG Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Andrea Spadaccini authored
Let the environment variables of the master IP turnup/turndown be derived from the parameter of the RPC itself (that is of type objects.MasterNetworkParameters in both cases). Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Andrea Spadaccini authored
Pass instances of objects.MasterNetworkParameters when calling RPCs for activation and deactivation of master IP. Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Andrea Spadaccini authored
Instead of manually unpacking the return values of cfg.GetMasterNetworkParameters, let it return an instance of objects.MasterNetworkParameters and pass its attributes. Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Andrea Spadaccini authored
Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Andrea Spadaccini authored
Add the master IP family parameter to the master IP deactivation RPCs, so that the activation and deactivation interfaces are uniform. Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Nov 02, 2011
-
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Andrea Spadaccini authored
Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Andrea Spadaccini authored
In the process of reworking the patches for master, I forgot to remove a call to GetMasterInfo() that overrides the parameters passed via RPC. This patch fixes this issue. Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Andrea Spadaccini authored
Add the master netmask and master IP version parameters to the hooks and document them. In this way, the hook environment building function can be reused for the planned master IP turnup changes. Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Andrea Spadaccini authored
Make the master explicitly pass the parameters to the change_master_netmask RPC, and change all the call flow to use the new interface. Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Andrea Spadaccini authored
Make the master explicitly pass the parameters to the deactivate_master_ip RPC, and change all the call flow to use the new interface. Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Andrea Spadaccini authored
To avoid polluting the stop_master RPC interface with network parameters, this patch removes the deactivation of the master IP from this RPC. The call to deactivate_master_ip is then added before every stop_master call. Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Andrea Spadaccini authored
To remove the usage of ssconf in the backend, the master needs to push the parameters of activate_master_ip to the backend. This patch changes the entire call path of activate_master_ip to use the new interface. Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
- Change all lock level names to their singular form - Add assertion checking consistency between level names and lockset name Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This is in preparation for implementing a new resource model. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Ensures licence and copyright headers are correct. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Nov 01, 2011
-
-
Andrea Spadaccini authored
Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-