2025-01-05 09:57:15,184 - INFO - Domain Default found not creating
2025-01-05 09:57:15,353 - INFO - Project ctest-TestBasicPolicy-73153747 not found, creating it
2025-01-05 09:57:15,810 - INFO - Created Project:ctest-TestBasicPolicy-73153747, ID : d9975a01-222f-4fb5-a920-9ae60f46ec18
2025-01-05 09:57:17,734 - INFO - ================================================================================
2025-01-05 09:57:17,734 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-05 09:57:17,734 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-01-05 09:57:17,993 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.6': '0'}} with
2025-01-05 09:57:17,993 - INFO - Initial checks done. Running the testcase now
2025-01-05 09:57:17,993 - INFO -
2025-01-05 09:57:18,528 - DEBUG - Response for create_network : {'network': {'id': 'da323aee-9246-4925-a9a0-39ae83ecef83', 'name': 'ctest-vn-71320692', 'tenant_id': 'd9975a01222f4fb5a9209ae60f46ec18', 'project_id': 'd9975a01222f4fb5a9209ae60f46ec18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73153747', 'ctest-vn-71320692'], 'port_security_enabled': True, 'description': ''}}
2025-01-05 09:57:18,768 - DEBUG - Response for create_subnet : {'subnet': {'id': '3c1cdedf-b361-4bc7-b035-251a0b96d642', 'name': '', 'tenant_id': 'd9975a01222f4fb5a9209ae60f46ec18', 'network_id': 'da323aee-9246-4925-a9a0-39ae83ecef83', 'ip_version': 4, 'cidr': '188.59.35.128/26', 'allocation_pools': [{'start': '188.59.35.130', 'end': '188.59.35.190'}], 'gateway_ip': '188.59.35.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.59.35.130', 'tags': [], 'project_id': 'd9975a01222f4fb5a9209ae60f46ec18'}}
2025-01-05 09:57:18,796 - INFO - Created VN ctest-vn-71320692
2025-01-05 09:57:18,854 - DEBUG - VN ctest-vn-71320692 UUID is da323aee-9246-4925-a9a0-39ae83ecef83
2025-01-05 09:57:19,197 - DEBUG - Response for create_network : {'network': {'id': 'e623c89f-10f5-4b49-8512-c632a700ac4c', 'name': 'ctest-vn-19271819', 'tenant_id': 'd9975a01222f4fb5a9209ae60f46ec18', 'project_id': 'd9975a01222f4fb5a9209ae60f46ec18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73153747', 'ctest-vn-19271819'], 'port_security_enabled': True, 'description': ''}}
2025-01-05 09:57:19,437 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a7538464-dedf-482a-a748-f9a04b529239', 'name': '', 'tenant_id': 'd9975a01222f4fb5a9209ae60f46ec18', 'network_id': 'e623c89f-10f5-4b49-8512-c632a700ac4c', 'ip_version': 4, 'cidr': '150.24.220.192/26', 'allocation_pools': [{'start': '150.24.220.194', 'end': '150.24.220.254'}], 'gateway_ip': '150.24.220.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.24.220.194', 'tags': [], 'project_id': 'd9975a01222f4fb5a9209ae60f46ec18'}}
2025-01-05 09:57:19,458 - INFO - Created VN ctest-vn-19271819
2025-01-05 09:57:19,513 - DEBUG - VN ctest-vn-19271819 UUID is e623c89f-10f5-4b49-8512-c632a700ac4c
2025-01-05 09:57:19,639 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73153747:ctest-vn-71320692, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73153747:ctest-vn-19271819, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-01-05 09:57:19,949 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'da323aee-9246-4925-a9a0-39ae83ecef83', 'name': 'ctest-vn-71320692', 'tenant_id': 'd9975a01222f4fb5a9209ae60f46ec18', 'project_id': 'd9975a01222f4fb5a9209ae60f46ec18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3c1cdedf-b361-4bc7-b035-251a0b96d642'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73153747', 'ctest-vn-71320692'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73153747', 'ctest-policy-allow-all-14135350']], 'subnet_ipam': [{'subnet_cidr': '188.59.35.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-05 09:57:20,241 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e623c89f-10f5-4b49-8512-c632a700ac4c', 'name': 'ctest-vn-19271819', 'tenant_id': 'd9975a01222f4fb5a9209ae60f46ec18', 'project_id': 'd9975a01222f4fb5a9209ae60f46ec18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a7538464-dedf-482a-a748-f9a04b529239'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73153747', 'ctest-vn-19271819'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73153747', 'ctest-policy-allow-all-14135350']], 'subnet_ipam': [{'subnet_cidr': '150.24.220.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-05 09:57:20,405 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-05 09:57:20,698 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-05 09:57:20,728 - DEBUG - Requesting: http://10.0.0.23:8082/domain/e6172c9e-77c2-439c-81bd-dd492bcbc71b
2025-01-05 09:57:20,743 - DEBUG - Requesting: http://10.0.0.23:8082/project/d9975a01-222f-4fb5-a920-9ae60f46ec18
2025-01-05 09:57:20,821 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/da323aee-9246-4925-a9a0-39ae83ecef83
2025-01-05 09:57:20,833 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/da323aee-9246-4925-a9a0-39ae83ecef83
2025-01-05 09:57:20,844 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c0995492-34f4-43fd-bd8d-6580ecc45c03
2025-01-05 09:57:20,854 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c0995492-34f4-43fd-bd8d-6580ecc45c03
2025-01-05 09:57:20,864 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/d36f01d5-942a-4f02-a6f2-f200024e61c8
2025-01-05 09:57:20,874 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-05 09:57:20,874 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/da323aee-9246-4925-a9a0-39ae83ecef83
2025-01-05 09:57:20,884 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c0995492-34f4-43fd-bd8d-6580ecc45c03
2025-01-05 09:57:20,900 - INFO - Verified VN network id 8 for VN da323aee-9246-4925-a9a0-39ae83ecef83
2025-01-05 09:57:20,900 - INFO - Verifications in API Server for VN ctest-vn-71320692 passed
2025-01-05 09:57:20,900 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/da323aee-9246-4925-a9a0-39ae83ecef83
2025-01-05 09:57:20,910 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c0995492-34f4-43fd-bd8d-6580ecc45c03
2025-01-05 09:57:20,918 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c0995492-34f4-43fd-bd8d-6580ecc45c03
2025-01-05 09:57:20,925 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/d36f01d5-942a-4f02-a6f2-f200024e61c8
2025-01-05 09:57:20,938 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73153747:ctest-vn-71320692', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73153747', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15722694045434530085', 'uuid-lslong': '12222832810383961987'}, 'enable': 'true', 'created': '2025-01-05T09:57:18', 'last-modified': '2025-01-05T09:57:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.014333'}
2025-01-05 09:57:20,945 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-05 09:57:20,945 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71320692 passed
2025-01-05 09:57:20,945 - DEBUG - ====Verifying policy data for ctest-vn-71320692 in API_Server ======
2025-01-05 09:57:20,945 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-05 09:57:20,952 - DEBUG - Requesting: http://10.0.0.23:8082/domain/e6172c9e-77c2-439c-81bd-dd492bcbc71b
2025-01-05 09:57:20,964 - DEBUG - Requesting: http://10.0.0.23:8082/project/d9975a01-222f-4fb5-a920-9ae60f46ec18
2025-01-05 09:57:21,039 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/da323aee-9246-4925-a9a0-39ae83ecef83
2025-01-05 09:57:21,049 - DEBUG - ==>Verifying data for policy with id: f1787c4d-4534-4683-ae2b-d04c4dacc4e0, fqn: ['default-domain', 'ctest-TestBasicPolicy-73153747', 'ctest-policy-allow-all-14135350']
2025-01-05 09:57:21,049 - INFO - VN ctest-vn-71320692 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-05 09:57:21,050 - DEBUG - Verifying the vn in opserver
2025-01-05 09:57:21,050 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73153747:ctest-vn-71320692 virtual network link through opserver 10.0.0.23
2025-01-05 09:57:21,050 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-01-05 09:57:21,341 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-01-05 09:57:21,397 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73153747:ctest-vn-71320692', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73153747:ctest-vn-71320692?flat'}
2025-01-05 09:57:21,397 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73153747:ctest-vn-71320692 is found in opserver
2025-01-05 09:57:21,409 - DEBUG - Do not have enough data to verify VN in agent
2025-01-05 09:57:21,414 - DEBUG - VRF ids for VN ctest-vn-71320692: {}
2025-01-05 09:57:21,414 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-05 09:57:21,420 - DEBUG - Requesting: http://10.0.0.23:8082/domain/e6172c9e-77c2-439c-81bd-dd492bcbc71b
2025-01-05 09:57:21,432 - DEBUG - Requesting: http://10.0.0.23:8082/project/d9975a01-222f-4fb5-a920-9ae60f46ec18
2025-01-05 09:57:21,513 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e623c89f-10f5-4b49-8512-c632a700ac4c
2025-01-05 09:57:21,527 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e623c89f-10f5-4b49-8512-c632a700ac4c
2025-01-05 09:57:21,538 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0971b508-3715-4ea9-9f03-e863d48260bc
2025-01-05 09:57:21,547 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0971b508-3715-4ea9-9f03-e863d48260bc
2025-01-05 09:57:21,556 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/c90dadab-4f57-49c9-bd9b-470d46c56aa5
2025-01-05 09:57:21,565 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-05 09:57:21,565 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e623c89f-10f5-4b49-8512-c632a700ac4c
2025-01-05 09:57:21,577 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0971b508-3715-4ea9-9f03-e863d48260bc
2025-01-05 09:57:21,592 - INFO - Verified VN network id 9 for VN e623c89f-10f5-4b49-8512-c632a700ac4c
2025-01-05 09:57:21,592 - INFO - Verifications in API Server for VN ctest-vn-19271819 passed
2025-01-05 09:57:21,592 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e623c89f-10f5-4b49-8512-c632a700ac4c
2025-01-05 09:57:21,604 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0971b508-3715-4ea9-9f03-e863d48260bc
2025-01-05 09:57:21,613 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0971b508-3715-4ea9-9f03-e863d48260bc
2025-01-05 09:57:21,623 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/c90dadab-4f57-49c9-bd9b-470d46c56aa5
2025-01-05 09:57:21,637 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73153747:ctest-vn-19271819', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73153747', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16583318838418164553', 'uuid-lslong': '9588944477477710924'}, 'enable': 'true', 'created': '2025-01-05T09:57:19', 'last-modified': '2025-01-05T09:57:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.466179'}
2025-01-05 09:57:21,644 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-05 09:57:21,644 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19271819 passed
2025-01-05 09:57:21,644 - DEBUG - ====Verifying policy data for ctest-vn-19271819 in API_Server ======
2025-01-05 09:57:21,644 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-05 09:57:21,651 - DEBUG - Requesting: http://10.0.0.23:8082/domain/e6172c9e-77c2-439c-81bd-dd492bcbc71b
2025-01-05 09:57:21,663 - DEBUG - Requesting: http://10.0.0.23:8082/project/d9975a01-222f-4fb5-a920-9ae60f46ec18
2025-01-05 09:57:21,744 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e623c89f-10f5-4b49-8512-c632a700ac4c
2025-01-05 09:57:21,755 - DEBUG - ==>Verifying data for policy with id: f1787c4d-4534-4683-ae2b-d04c4dacc4e0, fqn: ['default-domain', 'ctest-TestBasicPolicy-73153747', 'ctest-policy-allow-all-14135350']
2025-01-05 09:57:21,755 - INFO - VN ctest-vn-19271819 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-05 09:57:21,755 - DEBUG - Verifying the vn in opserver
2025-01-05 09:57:21,755 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73153747:ctest-vn-19271819 virtual network link through opserver 10.0.0.23
2025-01-05 09:57:21,756 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-01-05 09:57:21,767 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73153747:ctest-vn-19271819', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73153747:ctest-vn-19271819?flat'}
2025-01-05 09:57:21,768 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73153747:ctest-vn-19271819 is found in opserver
2025-01-05 09:57:21,780 - DEBUG - Do not have enough data to verify VN in agent
2025-01-05 09:57:21,785 - DEBUG - VRF ids for VN ctest-vn-19271819: {}
2025-01-05 09:57:21,860 - DEBUG - Services list from nova: [