Skip to contentSkip to conversation

Revert "eal: fix parsing option --telemetry"

PATCH In review Sean Morrissey 4 participants 10 messages Jul 24, 2019 – Jul 29, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Revert "eal: fix parsing option --telemetry"

This reverts commit debacba0297fbe214b4185a9791e6a9fdf6642ba.

Reverting this patch as it currently breaks the initialization of telemetry, more investigation is ongoing to fix the issue for the printed error message for unrecognized argument.

---
v2:
Adding sign off

---
 lib/librte_eal/common/eal_common_options.c | 3 ---
 lib/librte_eal/common/eal_options.h        | 4 ----
 2 files changed, 7 deletions(-)
lib/librte_eal/common/eal_common_options.c +0 -3
index 24e36cf23..512d5088e 100644
@@ -81,9 +81,6 @@ eal_long_options[] = {
 	{OPT_LEGACY_MEM,        0, NULL, OPT_LEGACY_MEM_NUM       },
 	{OPT_SINGLE_FILE_SEGMENTS, 0, NULL, OPT_SINGLE_FILE_SEGMENTS_NUM},
 	{OPT_MATCH_ALLOCATIONS, 0, NULL, OPT_MATCH_ALLOCATIONS_NUM},
-#ifdef RTE_LIBRTE_TELEMETRY
-	{OPT_TELEMETRY,         0, NULL, OPT_TELEMETRY_NUM        },
-#endif
 	{0,                     0, NULL, 0                        }
 };
 
lib/librte_eal/common/eal_options.h +0 -4
index e4c8e25c2..9855429e5 100644
@@ -69,10 +69,6 @@ enum {
 	OPT_IOVA_MODE_NUM,
 #define OPT_MATCH_ALLOCATIONS  "match-allocations"
 	OPT_MATCH_ALLOCATIONS_NUM,
-#ifdef RTE_LIBRTE_TELEMETRY
-	#define OPT_TELEMETRY          "telemetry"
-		OPT_TELEMETRY_NUM,
-#endif
 	OPT_LONG_MAX_NUM
 };
 
Signature · 13 lines
2.17.1

--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263


This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.
#1 lore raw

24/07/2019 17:20, Sean Morrissey:

Quoted 7 lines

This reverts commit debacba0297fbe214b4185a9791e6a9fdf6642ba.

Reverting this patch as it currently breaks the initialization of telemetry, more investigation is ongoing to fix the issue for the printed error message for unrecognized argument.

It's very disapointing.
Did you or the reviewer tested the previous patch?

#2 lore raw

Subject: Re: [PATCH v2] Revert "eal: fix parsing option --telemetry"

24/07/2019 17:20, Sean Morrissey:

Quoted 7 lines

This reverts commit debacba0297fbe214b4185a9791e6a9fdf6642ba.

Reverting this patch as it currently breaks the initialization of telemetry, more investigation is ongoing to fix the issue for the printed error message for unrecognized argument.

It's very disapointing.
Did you or the reviewer tested the previous patch?

The reporter of the bug tested this and verified functionality and closed the internal bug.

--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.

#3 lore raw

24/07/2019 18:28, Morrissey, Sean:

Quoted 10 lines

Subject: Re: [PATCH v2] Revert "eal: fix parsing option --telemetry"

24/07/2019 17:20, Sean Morrissey:

Quoted 6 lines

This reverts commit debacba0297fbe214b4185a9791e6a9fdf6642ba.

Reverting this patch as it currently breaks the initialization of telemetry, more investigation is ongoing to fix the issue for the printed error message for unrecognized argument.

Quoted 6 lines
Quoted 1 line

It's very disapointing.
Did you or the reviewer tested the previous patch?

The reporter of the bug tested this and verified functionality and closed the internal bug.

So the reverted commit is supposed to work?
I won't apply this revert until I fully understand what happens.

#4 lore raw

Subject: Re: [PATCH v2] Revert "eal: fix parsing option --telemetry"

24/07/2019 18:28, Morrissey, Sean:

Quoted 10 lines

Subject: Re: [PATCH v2] Revert "eal: fix parsing option --telemetry"

24/07/2019 17:20, Sean Morrissey:

Quoted 6 lines

This reverts commit debacba0297fbe214b4185a9791e6a9fdf6642ba.

Reverting this patch as it currently breaks the initialization of telemetry, more investigation is ongoing to fix the issue for the printed error message for unrecognized argument.

Quoted 6 lines
Quoted 1 line

It's very disapointing.
Did you or the reviewer tested the previous patch?

The reporter of the bug tested this and verified functionality and closed the internal bug.

So the reverted commit is supposed to work?
I won't apply this revert until I fully understand what happens.

The patch that I sent up was to remove an "unrecognized option telemetry" warning message, which the patch removed and was tested to ensure the message was removed. Further testing, after the patch was sent up, revealed that the unix domain socket, which is required by telemetry consumers, was no longer being created, rendering the telemetry functionality non-functional. On further investigation, the full fix involves a change in the EAL command line parameter handling, which is probably too risky for RC3.
This revert will allow telemetry to function again, but with the erroneous message still in place.
We will aim to fix in the next release.

--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.

#5 lore raw
Quoted 21 lines · Sean

Subject: Re: [PATCH v2] Revert "eal: fix parsing option --telemetry"

24/07/2019 18:28, Morrissey, Sean:

Quoted 10 lines

Subject: Re: [PATCH v2] Revert "eal: fix parsing option --telemetry"

24/07/2019 17:20, Sean Morrissey:

Quoted 6 lines

This reverts commit debacba0297fbe214b4185a9791e6a9fdf6642ba.

Reverting this patch as it currently breaks the initialization of telemetry, more investigation is ongoing to fix the issue for the printed error message for unrecognized argument.

Quoted 6 lines
Quoted 1 line

It's very disapointing.
Did you or the reviewer tested the previous patch?

The reporter of the bug tested this and verified functionality and closed the internal bug.

Quoted 7 lines

So the reverted commit is supposed to work?
I won't apply this revert until I fully understand what happens.

The patch that I sent up was to remove an "unrecognized option telemetry" warning message, which the patch removed and was tested to ensure the message was removed. Further testing, after the patch was sent up, revealed that the unix domain socket, which is required by telemetry consumers, was no longer being created, rendering the telemetry functionality non-functional. On further investigation, the full fix involves a change in the EAL command line parameter handling, which is probably too risky for RC3.
This revert will allow telemetry to function again, but with the erroneous message still in place.
We will aim to fix in the next release.

Might be good to look and revisit the rte_option api.

Quoted 7 lines

--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263

Quoted 5 lines

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.

Can you contact your IT and get this footer removed ? Thanks.

Signature · 1 line
David Marchand
#6 lore raw

25/07/2019 10:42, David Marchand:

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 14 lines

24/07/2019 17:20, Sean Morrissey:

Quoted 7 lines

This reverts commit debacba0297fbe214b4185a9791e6a9fdf6642ba.

Reverting this patch as it currently breaks the initialization of telemetry, more investigation is ongoing to fix the issue for the printed error message for unrecognized argument.

It's very disapointing.
Did you or the reviewer tested the previous patch?

The reporter of the bug tested this and verified functionality and closed the internal bug.> > >

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

So the reverted commit is supposed to work?
I won't apply this revert until I fully understand what happens.

The patch that I sent up was to remove an "unrecognized option telemetry" warning message, which the patch removed and was tested to ensure the message was removed. Further testing, after the patch was sent up,

So the patch was sent and reviewed without testing the functionality.

Quoted 4 lines
Quoted 4 lines

revealed that the unix domain socket,
which is required by telemetry consumers,
was no longer being created,
rendering the telemetry functionality non-functional.

Why this socket is not created?
How is it related to the option parsing?

Quoted 3 lines
Quoted 3 lines

On further investigation, the full fix involves a change in the EAL command line parameter handling, which is probably too risky for RC3.

No way you change the command line parsing, except the rte_option which was created for telemetry. The history of this "simple" feature is already full of hesitations which made me hesitate to merge. Please, don't force me to dig in the code, otherwise I will be tempted to do a big "clean-up".

Quoted 5 lines
Quoted 3 lines

This revert will allow telemetry to function again, but with the erroneous message still in place. We will aim to fix in the next release.

Might be good to look and revisit the rte_option api.

#7 lore raw
Quoted 6 lines · Thomas Monjalon

25/07/2019 10:42, David Marchand:

Quoted 4 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line

24/07/2019 17:20, Sean Morrissey:

On further investigation, the full fix involves a change in the EAL command line parameter handling, which is probably too risky for RC3.

Quoted 13 lines

No way you change the command line parsing, except the rte_option which was created for telemetry. The history of this "simple" feature is already full of hesitations which made me hesitate to merge. Please, don't force me to dig in the code, otherwise I will be tempted to do a big "clean-up".

Quoted 5 lines
Quoted 3 lines

This revert will allow telemetry to function again, but with the erroneous message still in place. We will aim to fix in the next release.

Might be good to look and revisit the rte_option api.

The patch on eal did not make any sense.
I am for reverting it too.

About the real fix, I'd like to first see a description of the actual problem. Thanks.

Signature · 1 line
David Marchand
#8 lore raw
Quoted 18 lines · David Marchand
Quoted 17 lines · Thomas Monjalon

25/07/2019 10:42, David Marchand:

Quoted 4 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line

24/07/2019 17:20, Sean Morrissey:

On further investigation, the full fix involves a change in the EAL command line parameter handling, which is probably too risky for RC3.

No way you change the command line parsing, except the rte_option which was created for telemetry. The history of this "simple" feature is already full of hesitations which made me hesitate to merge. Please, don't force me to dig in the code, otherwise I will be tempted to do a big "clean-up".

Quoted 4 lines
Quoted 3 lines

This revert will allow telemetry to function again, but with the erroneous message still in place. We will aim to fix in the next release.

Quoted 6 lines
Quoted 2 lines
Quoted 1 line

Might be good to look and revisit the rte_option api.

The patch on eal did not make any sense.
I am for reverting it too.

Hi all,

quick look at it:

719 /*

 720                  * getopt didn't recognise the option, lets parse the
 721                  * registered options to see if the flag is valid
 722                  */
 723                 if (opt == '?') {
 724                         ret = rte_option_parse(argv[optind-1]);
 725                         if (ret == 0)
 726                                 continue;
 727
 728                         eal_usage(prgname);
 729                         ret = -1;
 730                         goto out;

731 }

If the --telemetry option is added to the EAL command line,
then this branch will not happen, which explains why the socket was not opened on the lib side.

Quoted 6 lines

About the real fix, I'd like to first see a description of the actual problem. Thanks.

Signature · 1 line
David Marchand

Agreed, to add to this: was the build shared? It seems Stephen encountered errors with RTE_INIT of DPDK libs not being executed in shared builds, which could explain why everything would seem fine, but the rte_option would not be registered, making the parsing error appear.

Signature · 2 lines
Gaëtan Rivet
6WIND
#9 lore raw
In reply to David Marchand

29/07/2019 10:40, David Marchand:

Quoted 14 lines · Thomas Monjalon
Quoted 13 lines

25/07/2019 10:42, David Marchand:

Quoted 4 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line

24/07/2019 17:20, Sean Morrissey:

On further investigation, the full fix involves a change in the EAL command line parameter handling, which is probably too risky for RC3.

No way you change the command line parsing, except the rte_option which was created for telemetry. The history of this "simple" feature is already full of hesitations which made me hesitate to merge. Please, don't force me to dig in the code, otherwise I will be tempted to do a big "clean-up".

Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

This revert will allow telemetry to function again, but with the erroneous message still in place. We will aim to fix in the next release.

Might be good to look and revisit the rte_option api.

The patch on eal did not make any sense.
I am for reverting it too.

OK, reverted.

Next time I will see a patch for telemetry, I will ask all questions and will check by myself.