aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2018-03-19Merge branch 'master' of ssh://git.gnu.org.ua/gitroot/eclatSergey Poznyakoff3
2018-03-19Fix coredumpSergey Poznyakoff1
* src/eclat.c (find_command_name): Avoid calling ident_matches with NULL argument.
2018-03-16Version 2.0release-2.0Sergey Poznyakoff3
2018-03-15Update copyright yearsSergey Poznyakoff266
2018-03-15Minor fixesSergey Poznyakoff7
2018-03-15Upgrade grecsSergey Poznyakoff26
* grecs: pull * configure.ac: Enable json * lib/Makefile.am (AM_CPPFLAGS): Use @GRECS_INCLUDES@ (libeclat_a_SOURCES): Remove json sources. * src/Makefile.am (AM_CPPFLAGS): Use @GRECS_INCLUDES@ * tests/Makefile.am: Likewise. * lib/json.h: Remove. * lib/jsongrm.y: Remove. * lib/jsonlex.l: Remove. * tests/tjson.c: Remove. * src/config.c (eclat_kw): Mark statically initialized memory locations as such. * src/mktags.c (process_tags): Use wordsplit to process quoted arguments. * lib/bidimap.c (bidimap_config): Fill allocated memory with 0's * lib/filemap.c (filemap_config): Likewise. * lib/gdbmmap.c (gdbm_map_config): Likewise. * lib/seqmap.c (seqmap_config): Likewise.
2018-03-15Update docsSergey Poznyakoff5
2018-03-15Minor changesSergey Poznyakoff1
* src/util.c (eclat_send_request): Fix the AWS error string. Print a warning before sleeping. Fix memory leak.
2018-03-14Implement exponential backoff with jitter to handle RequestLimitExceededSergey Poznyakoff13
* src/eclat.h (eclat_command_env) <curl>: Remove. <xmltree>: New field. * src/util.c (translate_ids): Close the map when no longer needed (eclat_send_request): Implement exponential backoff. * src/ec2map.c: Reflect the above changes. * src/eclat.c: Likewise. * lib/libeclat.h (eclat_request_dup): New proto. * lib/reqcreat.c (eclat_request_dup): New function. * src/config.c: New configuration statements: max-retry-interval and retry-timeout.
2015-11-19Restore missing translation mapsSergey Poznyakoff5
2015-11-19Add missing files to repoSergey Poznyakoff2
2015-11-19Raise patchlevel number.Sergey Poznyakoff3
* NEWS: Document changes. * configure.ac: Update. * tests/describe-instances.at: sync with the previous commit.
2015-11-19Fix formatsSergey Poznyakoff3
* etc/allocate-address.fln: Print allocation ID, if available. * etc/describe-instances.fln: Fix printing group sets. * etc/describe-subnets.fln: Fix undefined variable.
2015-11-19Add operations on egress rules for VPC security groups.Sergey Poznyakoff5
* src/sg-cl.opt: New options: --input (--ingress, -I), and --output (--egress, -O). * src/sg.c (command): const. * doc/eclat-sg.1: Document --input/--output modifiers. * TODO: Likewise. * etc/sg.fln: Add support for egress responses.
2015-11-19Minor fixSergey Poznyakoff2
* etc/describe-internet-gateway.fln: Rename to * etc/describe-internet-gateways.fln: this * etc/Makefile.am: Likewise.
2015-11-19New commands: assocrtab, mkrtab, rmrtab, lsrtab, disasrtab, routeSergey Poznyakoff16
These implement the following EC2 actions: AssociateRouteTable, CreateRoute, CreateRouteTable, DeleteRoute, DeleteRouteTable, DescribeRouteTables, DisassociateRouteTable, ReplaceRoute. * TODO: Update. * etc/Makefile.am: Add new formats. * etc/associate-route-table.fln: New file. * etc/create-route-table.fln: New file. * etc/create-route.fln: New file. * etc/delete-route-table.fln: New file. * etc/delete-route.fln: New file. * etc/describe-route-tables.fln: New file. * etc/disassociate-route-table.fln: New file. * etc/replace-route.fln: New file. * etc/route.fln: New file. * src/Makefile.am: Add routetable.c * src/routetable.c: New file. * src/eclat.c (cmdtab): Register new subcommands. * src/eclat.h (ECLAT_DEBCAT_DUMP): New category. Add new protos. * src/io.c (write_callback): Enable XML dump if dump debug category is set.
2015-11-19Add formats for new statements introduced by ed8a63af and 1473a448Sergey Poznyakoff13
2015-11-19Implement subnet commandsSergey Poznyakoff7
New commands: mksubnet, rmsubnet, lssubnet, setsubnetattr. * TODO: Update. * lib/libeclat.h (EC2_API_VERSION): Update. * src/Makefile.am: Add subnet.c. * src/subnet.c: New file. * src/eclat.c (cmdtab): Register new commands. * src/eclat.h: Add new prototypes.
2015-11-18Implement VPC and Internet Gateway commands.Sergey Poznyakoff20
New commands: lsvpc, lsvpcattr, mkvpc, setvpcattr, rmvpc, lsigw, mkigw, rmigw, atigw, deigw. * TODO: Update. * doc/Makefile.inc: Add mkvpc manpage. * etc/Makefile.am: Add create-vpc.fl and describe-vpcs.fln * etc/describe-vpc-attribute.fln: New file. * etc/describe-vpcs.fln: New file. * src/Makefile.am: Add new files. * src/igw.c: New file. * src/lsvpc.c: New file. * src/mkvpc-cl.opt: New file. * src/mkvpc.c: New file. * src/rmvpc.c: New file. * src/vpcattr.c: New file. * src/eclat.c (cmdtab): Register new subcommands. * src/eclat.h: Add new prototypes. * src/mksg-cl.opt: New option: --internet-gateway, -g * src/lsinst.c (parse_options): Define args_doc. * src/lsreg.c (parse_options): Remove useless return. * src/lstag-cl.opt: Likewise. * src/mktags-cl.opt: Remove stray character.
2015-02-26Untabify docsSergey Poznyakoff1
2015-02-26Version 1.1release-1.1Sergey Poznyakoff3
2015-02-02New options: --check-permissions and --add-parameterSergey Poznyakoff14
* NEWS: Update. * doc/eclat-stop.1: Update. * doc/eclat.1man: Update. * etc/default.fln: Special handling for DryRunOperation and UnauthorizedOperation codes. * lib/paramlist.c: New file. * lib/Makefile.am (libeclat_a_SOURCES): Add paramlist.c * lib/forlan.c: New function dequote. * lib/libeclat.h (eclat_request_add_param0) (ec2_param_free, ec2_param_list_create) (ec2_param_list_append) (eclat_request_add_param_list): New protos. * lib/reqcreat.c (ec2_param_free): Remove static qualifier. * src/stop-cl.opt: New file. * src/Makefile.am (OPTFILES): Add stop-cl.opt * src/cmdline.opt: New options: --check-permissions and --add-parameter. * src/eclat.c (extra_param): New global. (find_format): print error message if no such format is found. * src/startstop.c (eclat_stop_instance): Use parse_stop_options
2015-01-28More fixes in manpagesSergey Poznyakoff2
2015-01-27Fix remaining whatis entriesSergey Poznyakoff2
2015-01-27sg: accept -1 as argument to --portSergey Poznyakoff2
* src/sg-cl.opt (--port option): Accept -1 * src/sg.c (str2port): Likewise. (add_source_cidr): Fix coredump
2015-01-26Update whois entriesSergey Poznyakoff43
2015-01-23Improve ispeekSergey Poznyakoff1
* src/ispeek.c (is_user_data): New function (print_dir,ispeek_do): Always treat user-data as file.
2015-01-23Use signature version 4 by defaultSergey Poznyakoff3
2015-01-23Implement HTTP POSTSergey Poznyakoff10
* NEWS: Update. * doc/eclat.conf.5: Document http-method. Reorganize description of endpoints and regions. * lib/libeclat.h (ec2_request) <postdata>: New member (eclat_request_finalize): New proto. * lib/req2url.c (eclat_request_to_url): Remove second argument. All uses changed. (eclat_request_finalize): New function. * lib/reqfree.c: Free postdata. * lib/reqsign.c (requestsign4): Implement post. * src/config.c: New configuration statement http-method. * src/eclat.c (use_post): New variable. * src/eclat.h (use_post): New extern. * src/util.c (eclat_send_request): Implement post.
2015-01-23Namespace fixup: use "request" consistentlySergey Poznyakoff51
2015-01-22Update copyright years.Sergey Poznyakoff242
2015-01-22Version 1.0.92Sergey Poznyakoff2
2015-01-22Improve setting UserData attribute. Change lsistat defaults.Sergey Poznyakoff14
* NEWS: Update. * doc/eclat-setiattr.1: Document new options. * doc/eclat-lsistat.1: Update. * etc/describe-instance-attribute.fln: Decode userData. * grecs: Upgrade. * src/setiattr-cl.opt: New file. * src/Makefile.am (OPTFILES): Add setiattr-cl.opt * src/setiattr.c: Encode UserData. * src/eclat.h (read_file): New proto. * src/lsistat-cl.opt: New option -r (--running). * src/lsistat.c: Change default to show all instances, no matter their state. * src/mkinst-cl.opt (read_user_data): Remove. Use read_file instead. * src/sg.c: Add missing include. * src/util.c (read_file): New function.
2015-01-22Fix a typoSergey Poznyakoff1
2015-01-22authentication-provider instance-store does not require role name argumentSergey Poznyakoff10
* NEWS: Update. * doc/eclat.conf.5: Update. * lib/Makefile.am: Add new sources. * lib/istore.c: New file. * lib/path.c: New file. * lib/libeclat.h (path_concat) (instance_store_curl_new) (instance_store_read): New protos. * src/config.c (cb_authentication_provider): second argument is optional for instance-store type. New compound statement: instance-store. * src/eclat.h (instance_store_base_url) (instance_store_port,instance_store_document_path): (instance_store_credentials_path): New externs. * src/ispeek.c: Rewrite using new functions. * src/util.c: Likewise.
2015-01-21Improve ispeekSergey Poznyakoff4
* doc/ispeek.1: Update. * grecs: Upgrade * src/ispeek-cl.opt: New options. * src/ispeek.c: Optionally print variable types, quote strings, etc. Add heuristics to determine whether the obtained data are a directory listing or a text.
2015-01-21Add ispeek.Sergey Poznyakoff12
* src/ispeek.c: New file. * src/ispeek-cl.opt: New file * src/Makefile.am: Add ispeek * src/io.c (dump, eclat_trace_fun): Moved to the library. (eclat_io_setup): Use eclat_set_curl_trace. * NEWS: Document ispeek. * doc/Makefile.inc: Add ispeek.1 * doc/eclat.1man: Mention ispeek(1) in the "see also" section. * doc/eclat.conf.5: Update. * doc/ispeek.1: New file. * lib/Makefile.am (libeclat_a_SOURCES): Add trace.c * lib/libeclat.h (eclat_trace_fun) (eclat_set_curl_trace): New proto. * lib/trace.c: New file.
2015-01-20Document authentication provider configuration.Sergey Poznyakoff3
2015-01-19Version 1.0.91Sergey Poznyakoff2
2015-01-19New configuration statement authentication-provideSergey Poznyakoff5
* NEWS: Update. * src/config.c: New statement "authentication-provider" * src/eclat.c (authentication_provider): New variable. (main): Select credentials depending on the value of authentication_provider. * src/eclat.h (authentication_provider): New enum and extern.
2015-01-19Minor improvementSergey Poznyakoff1
* lib/reqsign.c (querysign4): Pass credentials in HTTP headers, instead of parameters.
2015-01-19Implement IAM in request signing v.4Sergey Poznyakoff1
* lib/reqsign.c (querysign4): Add X-Amz-Security-Token param.
2015-01-19BugfixSergey Poznyakoff1
* lib/reqsign.c (eclat_hex_encode): add terminating zero
2015-01-19Initial support for IAMSergey Poznyakoff20
* NEWS: Update. * doc/eclat.1man: Update. * lib/.gitignore: Update. * lib/Makefile.am (libeclat_a_SOURCES): Add new files. * lib/json.h: New file. * lib/jsongrm.y: New file. * lib/jsonlex.l: New file. * lib/yytrans: New file. * lib/libeclat.h (ec2_query) <token>: New member (eclat_query_create): Change signature. * lib/qcreat.c (eclat_query_create): Take security token as 5th argument. * lib/reqsign.c (querysign2): Add security token. * src/cmdline.opt: Update copyright years * src/ec2map.c (ec2_map_get): Pass security token to eclat_query_create. * src/eclat.c (security_token): New variable. (eclat_do_command): Pass security token to eclat_query_create. (main): Get authentication credentials from the instance store, if not found in the access file. * src/eclat.h (security_token): New extern. (eclat_get_instance_creds): New proto. * src/util.c (eclat_get_instance_zone): Use json parser. (eclat_get_instance_creds): New function. * tests/Makefile.am (noinst_PROGRAMS): add tjson * tests/tjson.c: New file.
2015-01-18If no region is specified, get it from the instance storeSergey Poznyakoff4
* src/eclat.c: If no region is specified, try to get it from the instance store. * src/eclat.h (eclat_trace_fun): New proto. (eclat_get_instance_zone): New proto. * src/io.c (eclat_trace_fun): Remove static qualifier. * src/util.c (eclat_get_instance_meta_data): New function. (eclat_get_instance_zone): New function.
2015-01-15BugfixesSergey Poznyakoff2
* grecs: Upgrade * src/sg.c (add_source_cidr): Accept /0 mask; improve error detection.
2014-12-10Fix coredump when comparing non-existing nodes.Sergey Poznyakoff11
* lib/forlan.c (coerce_value): Handle NULL nodes. (values_equal): Handle NULL strings. (dump_expr): Handle EQ and NE. * lib/forlanlex.l: Fix distinction before negative numeric and identifier. * etc/describe-security-groups.fln: ipProtocol == "-1" means "all". * tests/Makefile.am: Add new tests. * tests/testsuite.at: Likewise. * tests/comp00.at: New file. * tests/comp01.at: New file. * tests/comp02.at: New file. * tests/comp03.at: New file. * tests/comp04.at: New file. * tests/tforlan.c (main): Optionally read XML from standard input.
2014-12-02BugfixSergey Poznyakoff1
* etc/flncat.c: Add boundary check
2014-12-02Fix generation of consolidated format file.Sergey Poznyakoff1
* etc/flncat.c (main): Reset outchars after opening a new file
2014-09-16Minor fix in eclat1.manSergey Poznyakoff1

Return to:

Send suggestions and report system problems to the System administrator.