2025-01-08 15:06:24,610 - INFO - Domain Default found not creating
2025-01-08 15:06:24,747 - INFO - Project ctest-TestBasicPolicy-87771628 not found, creating it
2025-01-08 15:06:25,474 - INFO - Created Project:ctest-TestBasicPolicy-87771628, ID : 7bfc4821-ef8a-4e00-abfc-19a2770b25d2
2025-01-08 15:06:26,901 - INFO - ================================================================================
2025-01-08 15:06:26,901 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-08 15:06:26,901 - 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-08 15:06:27,159 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.11': '0'}} with
2025-01-08 15:06:27,159 - INFO - Initial checks done. Running the testcase now
2025-01-08 15:06:27,159 - INFO -
2025-01-08 15:06:27,698 - DEBUG - Response for create_network : {'network': {'id': 'a0f1df0f-1c49-4cf7-85b6-823493e7e6b0', 'name': 'ctest-vn-62895632', 'tenant_id': '7bfc4821ef8a4e00abfc19a2770b25d2', 'project_id': '7bfc4821ef8a4e00abfc19a2770b25d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87771628', 'ctest-vn-62895632'], 'port_security_enabled': True, 'description': ''}}
2025-01-08 15:06:27,880 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd15b285b-6449-4755-ab63-3661d8b8d41c', 'name': '', 'tenant_id': '7bfc4821ef8a4e00abfc19a2770b25d2', 'network_id': 'a0f1df0f-1c49-4cf7-85b6-823493e7e6b0', 'ip_version': 4, 'cidr': '44.232.99.128/26', 'allocation_pools': [{'start': '44.232.99.130', 'end': '44.232.99.190'}], 'gateway_ip': '44.232.99.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.232.99.130', 'tags': [], 'project_id': '7bfc4821ef8a4e00abfc19a2770b25d2'}}
2025-01-08 15:06:27,898 - INFO - Created VN ctest-vn-62895632
2025-01-08 15:06:27,949 - DEBUG - VN ctest-vn-62895632 UUID is a0f1df0f-1c49-4cf7-85b6-823493e7e6b0
2025-01-08 15:06:28,252 - DEBUG - Response for create_network : {'network': {'id': 'c7ab8da8-887d-492c-bede-7f8ed43d37c2', 'name': 'ctest-vn-83947385', 'tenant_id': '7bfc4821ef8a4e00abfc19a2770b25d2', 'project_id': '7bfc4821ef8a4e00abfc19a2770b25d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87771628', 'ctest-vn-83947385'], 'port_security_enabled': True, 'description': ''}}
2025-01-08 15:06:28,425 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb5942a5-e7f2-4264-81e4-6beb8f6d9713', 'name': '', 'tenant_id': '7bfc4821ef8a4e00abfc19a2770b25d2', 'network_id': 'c7ab8da8-887d-492c-bede-7f8ed43d37c2', 'ip_version': 4, 'cidr': '171.70.193.128/26', 'allocation_pools': [{'start': '171.70.193.130', 'end': '171.70.193.190'}], 'gateway_ip': '171.70.193.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.70.193.130', 'tags': [], 'project_id': '7bfc4821ef8a4e00abfc19a2770b25d2'}}
2025-01-08 15:06:28,443 - INFO - Created VN ctest-vn-83947385
2025-01-08 15:06:28,497 - DEBUG - VN ctest-vn-83947385 UUID is c7ab8da8-887d-492c-bede-7f8ed43d37c2
2025-01-08 15:06:28,645 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-62895632, 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-87771628:ctest-vn-83947385, 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-08 15:06:28,942 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a0f1df0f-1c49-4cf7-85b6-823493e7e6b0', 'name': 'ctest-vn-62895632', 'tenant_id': '7bfc4821ef8a4e00abfc19a2770b25d2', 'project_id': '7bfc4821ef8a4e00abfc19a2770b25d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d15b285b-6449-4755-ab63-3661d8b8d41c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87771628', 'ctest-vn-62895632'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87771628', 'ctest-policy-allow-all-19863569']], 'subnet_ipam': [{'subnet_cidr': '44.232.99.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-08 15:06:29,172 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c7ab8da8-887d-492c-bede-7f8ed43d37c2', 'name': 'ctest-vn-83947385', 'tenant_id': '7bfc4821ef8a4e00abfc19a2770b25d2', 'project_id': '7bfc4821ef8a4e00abfc19a2770b25d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb5942a5-e7f2-4264-81e4-6beb8f6d9713'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87771628', 'ctest-vn-83947385'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87771628', 'ctest-policy-allow-all-19863569']], 'subnet_ipam': [{'subnet_cidr': '171.70.193.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-08 15:06:29,337 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-08 15:06:29,632 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-08 15:06:29,664 - DEBUG - Requesting: http://10.0.0.23:8082/domain/9bc86d69-b21f-4062-9227-fa1b410f5765
2025-01-08 15:06:29,679 - DEBUG - Requesting: http://10.0.0.23:8082/project/7bfc4821-ef8a-4e00-abfc-19a2770b25d2
2025-01-08 15:06:29,753 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a0f1df0f-1c49-4cf7-85b6-823493e7e6b0
2025-01-08 15:06:29,765 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a0f1df0f-1c49-4cf7-85b6-823493e7e6b0
2025-01-08 15:06:29,774 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fca1118-e076-4873-beb9-d804c155ca32
2025-01-08 15:06:29,781 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fca1118-e076-4873-beb9-d804c155ca32
2025-01-08 15:06:29,787 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/c917631b-e3e8-4ff2-85be-da876c902295
2025-01-08 15:06:29,793 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-08 15:06:29,793 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a0f1df0f-1c49-4cf7-85b6-823493e7e6b0
2025-01-08 15:06:29,801 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fca1118-e076-4873-beb9-d804c155ca32
2025-01-08 15:06:29,814 - INFO - Verified VN network id 8 for VN a0f1df0f-1c49-4cf7-85b6-823493e7e6b0
2025-01-08 15:06:29,814 - INFO - Verifications in API Server for VN ctest-vn-62895632 passed
2025-01-08 15:06:29,814 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a0f1df0f-1c49-4cf7-85b6-823493e7e6b0
2025-01-08 15:06:29,823 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fca1118-e076-4873-beb9-d804c155ca32
2025-01-08 15:06:29,829 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fca1118-e076-4873-beb9-d804c155ca32
2025-01-08 15:06:29,835 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/c917631b-e3e8-4ff2-85be-da876c902295
2025-01-08 15:06:29,846 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-62895632', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87771628', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11597295771447807223', 'uuid-lslong': '9635031615137113776'}, 'enable': 'true', 'created': '2025-01-08T15:06:27', 'last-modified': '2025-01-08T15:06:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.935658'}
2025-01-08 15:06:29,852 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-08 15:06:29,852 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62895632 passed
2025-01-08 15:06:29,852 - DEBUG - ====Verifying policy data for ctest-vn-62895632 in API_Server ======
2025-01-08 15:06:29,852 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-08 15:06:29,858 - DEBUG - Requesting: http://10.0.0.23:8082/domain/9bc86d69-b21f-4062-9227-fa1b410f5765
2025-01-08 15:06:29,868 - DEBUG - Requesting: http://10.0.0.23:8082/project/7bfc4821-ef8a-4e00-abfc-19a2770b25d2
2025-01-08 15:06:29,942 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a0f1df0f-1c49-4cf7-85b6-823493e7e6b0
2025-01-08 15:06:29,952 - DEBUG - ==>Verifying data for policy with id: ec70ea20-bf5c-49c2-9b21-115f25dee2fb, fqn: ['default-domain', 'ctest-TestBasicPolicy-87771628', 'ctest-policy-allow-all-19863569']
2025-01-08 15:06:29,952 - INFO - VN ctest-vn-62895632 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-08 15:06:29,952 - DEBUG - Verifying the vn in opserver
2025-01-08 15:06:29,952 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-62895632 virtual network link through opserver 10.0.0.23
2025-01-08 15:06:29,952 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-01-08 15:06:30,253 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-01-08 15:06:30,313 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-62895632', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-62895632?flat'}
2025-01-08 15:06:30,313 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-62895632 is found in opserver
2025-01-08 15:06:30,323 - DEBUG - Do not have enough data to verify VN in agent
2025-01-08 15:06:30,328 - DEBUG - VRF ids for VN ctest-vn-62895632: {}
2025-01-08 15:06:30,328 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-08 15:06:30,333 - DEBUG - Requesting: http://10.0.0.23:8082/domain/9bc86d69-b21f-4062-9227-fa1b410f5765
2025-01-08 15:06:30,343 - DEBUG - Requesting: http://10.0.0.23:8082/project/7bfc4821-ef8a-4e00-abfc-19a2770b25d2
2025-01-08 15:06:30,413 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c7ab8da8-887d-492c-bede-7f8ed43d37c2
2025-01-08 15:06:30,425 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c7ab8da8-887d-492c-bede-7f8ed43d37c2
2025-01-08 15:06:30,434 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7c80f46b-d30a-401b-b0fd-0b1612571a84
2025-01-08 15:06:30,442 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7c80f46b-d30a-401b-b0fd-0b1612571a84
2025-01-08 15:06:30,449 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/da28ca8f-d52e-4a56-abbf-711ab43ab3bf
2025-01-08 15:06:30,455 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-08 15:06:30,455 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c7ab8da8-887d-492c-bede-7f8ed43d37c2
2025-01-08 15:06:30,465 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7c80f46b-d30a-401b-b0fd-0b1612571a84
2025-01-08 15:06:30,478 - INFO - Verified VN network id 9 for VN c7ab8da8-887d-492c-bede-7f8ed43d37c2
2025-01-08 15:06:30,478 - INFO - Verifications in API Server for VN ctest-vn-83947385 passed
2025-01-08 15:06:30,478 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c7ab8da8-887d-492c-bede-7f8ed43d37c2
2025-01-08 15:06:30,488 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7c80f46b-d30a-401b-b0fd-0b1612571a84
2025-01-08 15:06:30,494 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7c80f46b-d30a-401b-b0fd-0b1612571a84
2025-01-08 15:06:30,501 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/da28ca8f-d52e-4a56-abbf-711ab43ab3bf
2025-01-08 15:06:30,513 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-83947385', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87771628', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14387749189549115692', 'uuid-lslong': '13753570563458938818'}, 'enable': 'true', 'created': '2025-01-08T15:06:28', 'last-modified': '2025-01-08T15:06:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.367573'}
2025-01-08 15:06:30,519 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-08 15:06:30,519 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83947385 passed
2025-01-08 15:06:30,519 - DEBUG - ====Verifying policy data for ctest-vn-83947385 in API_Server ======
2025-01-08 15:06:30,519 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-08 15:06:30,524 - DEBUG - Requesting: http://10.0.0.23:8082/domain/9bc86d69-b21f-4062-9227-fa1b410f5765
2025-01-08 15:06:30,535 - DEBUG - Requesting: http://10.0.0.23:8082/project/7bfc4821-ef8a-4e00-abfc-19a2770b25d2
2025-01-08 15:06:30,609 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c7ab8da8-887d-492c-bede-7f8ed43d37c2
2025-01-08 15:06:30,619 - DEBUG - ==>Verifying data for policy with id: ec70ea20-bf5c-49c2-9b21-115f25dee2fb, fqn: ['default-domain', 'ctest-TestBasicPolicy-87771628', 'ctest-policy-allow-all-19863569']
2025-01-08 15:06:30,619 - INFO - VN ctest-vn-83947385 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-08 15:06:30,619 - DEBUG - Verifying the vn in opserver
2025-01-08 15:06:30,619 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-83947385 virtual network link through opserver 10.0.0.23
2025-01-08 15:06:30,619 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-01-08 15:06:30,629 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-83947385', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-83947385?flat'}
2025-01-08 15:06:30,629 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-83947385 is found in opserver
2025-01-08 15:06:30,639 - DEBUG - Do not have enough data to verify VN in agent
2025-01-08 15:06:30,644 - DEBUG - VRF ids for VN ctest-vn-83947385: {}
2025-01-08 15:06:30,697 - DEBUG - Services list from nova: [