2025-01-04 20:37:40,225 - INFO - Domain Default found not creating
2025-01-04 20:37:40,414 - INFO - Project ctest-TestBasicPolicy-69085111 not found, creating it
2025-01-04 20:37:40,918 - INFO - Created Project:ctest-TestBasicPolicy-69085111, ID : eeb563ba-9ecf-49f6-aee0-0096eff3e3bc
2025-01-04 20:37:42,371 - INFO - ================================================================================
2025-01-04 20:37:42,373 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-04 20:37:42,373 - 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-04 20:37:42,640 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.5': '0'}} with
2025-01-04 20:37:42,640 - INFO - Initial checks done. Running the testcase now
2025-01-04 20:37:42,641 - INFO -
2025-01-04 20:37:43,219 - DEBUG - Response for create_network : {'network': {'id': '5755115d-00c2-4941-a2ee-ac9cb19e8966', 'name': 'ctest-vn-76087139', 'tenant_id': 'eeb563ba9ecf49f6aee00096eff3e3bc', 'project_id': 'eeb563ba9ecf49f6aee00096eff3e3bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69085111', 'ctest-vn-76087139'], 'port_security_enabled': True, 'description': ''}}
2025-01-04 20:37:43,379 - DEBUG - Response for create_subnet : {'subnet': {'id': '13fed5a7-a84e-436c-a6c6-531811ee3c81', 'name': '', 'tenant_id': 'eeb563ba9ecf49f6aee00096eff3e3bc', 'network_id': '5755115d-00c2-4941-a2ee-ac9cb19e8966', 'ip_version': 4, 'cidr': '49.78.45.192/26', 'allocation_pools': [{'start': '49.78.45.194', 'end': '49.78.45.254'}], 'gateway_ip': '49.78.45.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.78.45.194', 'tags': [], 'project_id': 'eeb563ba9ecf49f6aee00096eff3e3bc'}}
2025-01-04 20:37:43,398 - INFO - Created VN ctest-vn-76087139
2025-01-04 20:37:43,454 - DEBUG - VN ctest-vn-76087139 UUID is 5755115d-00c2-4941-a2ee-ac9cb19e8966
2025-01-04 20:37:43,774 - DEBUG - Response for create_network : {'network': {'id': 'c0f8459f-81a9-43d4-89cc-031d0778239c', 'name': 'ctest-vn-53861343', 'tenant_id': 'eeb563ba9ecf49f6aee00096eff3e3bc', 'project_id': 'eeb563ba9ecf49f6aee00096eff3e3bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69085111', 'ctest-vn-53861343'], 'port_security_enabled': True, 'description': ''}}
2025-01-04 20:37:43,920 - DEBUG - Response for create_subnet : {'subnet': {'id': '3fe94763-d3df-4330-93d3-4bdfb718e4ef', 'name': '', 'tenant_id': 'eeb563ba9ecf49f6aee00096eff3e3bc', 'network_id': 'c0f8459f-81a9-43d4-89cc-031d0778239c', 'ip_version': 4, 'cidr': '39.15.210.0/26', 'allocation_pools': [{'start': '39.15.210.2', 'end': '39.15.210.62'}], 'gateway_ip': '39.15.210.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.15.210.2', 'tags': [], 'project_id': 'eeb563ba9ecf49f6aee00096eff3e3bc'}}
2025-01-04 20:37:43,937 - INFO - Created VN ctest-vn-53861343
2025-01-04 20:37:43,986 - DEBUG - VN ctest-vn-53861343 UUID is c0f8459f-81a9-43d4-89cc-031d0778239c
2025-01-04 20:37:44,101 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-76087139, 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-69085111:ctest-vn-53861343, 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-04 20:37:44,437 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5755115d-00c2-4941-a2ee-ac9cb19e8966', 'name': 'ctest-vn-76087139', 'tenant_id': 'eeb563ba9ecf49f6aee00096eff3e3bc', 'project_id': 'eeb563ba9ecf49f6aee00096eff3e3bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['13fed5a7-a84e-436c-a6c6-531811ee3c81'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69085111', 'ctest-vn-76087139'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69085111', 'ctest-policy-allow-all-86898261']], 'subnet_ipam': [{'subnet_cidr': '49.78.45.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-04 20:37:44,669 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c0f8459f-81a9-43d4-89cc-031d0778239c', 'name': 'ctest-vn-53861343', 'tenant_id': 'eeb563ba9ecf49f6aee00096eff3e3bc', 'project_id': 'eeb563ba9ecf49f6aee00096eff3e3bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3fe94763-d3df-4330-93d3-4bdfb718e4ef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69085111', 'ctest-vn-53861343'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69085111', 'ctest-policy-allow-all-86898261']], 'subnet_ipam': [{'subnet_cidr': '39.15.210.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-04 20:37:44,818 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-04 20:37:45,123 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-04 20:37:45,152 - DEBUG - Requesting: http://10.0.0.17:8082/domain/13ae25cb-aa81-4b6a-98ca-847fd76948d8
2025-01-04 20:37:45,165 - DEBUG - Requesting: http://10.0.0.17:8082/project/eeb563ba-9ecf-49f6-aee0-0096eff3e3bc
2025-01-04 20:37:45,237 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/5755115d-00c2-4941-a2ee-ac9cb19e8966
2025-01-04 20:37:45,249 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/5755115d-00c2-4941-a2ee-ac9cb19e8966
2025-01-04 20:37:45,260 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/b519b0a9-b82e-4b2c-beca-0bbaab8cf8b0
2025-01-04 20:37:45,267 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/b519b0a9-b82e-4b2c-beca-0bbaab8cf8b0
2025-01-04 20:37:45,275 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/6d462fc4-88de-4e8a-baac-dc2180918046
2025-01-04 20:37:45,282 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-04 20:37:45,282 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/5755115d-00c2-4941-a2ee-ac9cb19e8966
2025-01-04 20:37:45,292 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/b519b0a9-b82e-4b2c-beca-0bbaab8cf8b0
2025-01-04 20:37:45,310 - INFO - Verified VN network id 8 for VN 5755115d-00c2-4941-a2ee-ac9cb19e8966
2025-01-04 20:37:45,310 - INFO - Verifications in API Server for VN ctest-vn-76087139 passed
2025-01-04 20:37:45,310 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/5755115d-00c2-4941-a2ee-ac9cb19e8966
2025-01-04 20:37:45,323 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/b519b0a9-b82e-4b2c-beca-0bbaab8cf8b0
2025-01-04 20:37:45,332 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/b519b0a9-b82e-4b2c-beca-0bbaab8cf8b0
2025-01-04 20:37:45,342 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/6d462fc4-88de-4e8a-baac-dc2180918046
2025-01-04 20:37:45,356 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-76087139', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69085111', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6292955145462499649', 'uuid-lslong': '11740511067596294502'}, 'enable': 'true', 'created': '2025-01-04T20:37:43', 'last-modified': '2025-01-04T20:37:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.965002'}
2025-01-04 20:37:45,365 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-04 20:37:45,365 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76087139 passed
2025-01-04 20:37:45,365 - DEBUG - ====Verifying policy data for ctest-vn-76087139 in API_Server ======
2025-01-04 20:37:45,365 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-04 20:37:45,373 - DEBUG - Requesting: http://10.0.0.17:8082/domain/13ae25cb-aa81-4b6a-98ca-847fd76948d8
2025-01-04 20:37:45,390 - DEBUG - Requesting: http://10.0.0.17:8082/project/eeb563ba-9ecf-49f6-aee0-0096eff3e3bc
2025-01-04 20:37:45,467 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/5755115d-00c2-4941-a2ee-ac9cb19e8966
2025-01-04 20:37:45,477 - DEBUG - ==>Verifying data for policy with id: 3369631e-3141-4d97-9c46-f1ce98a2a47d, fqn: ['default-domain', 'ctest-TestBasicPolicy-69085111', 'ctest-policy-allow-all-86898261']
2025-01-04 20:37:45,477 - INFO - VN ctest-vn-76087139 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-04 20:37:45,477 - DEBUG - Verifying the vn in opserver
2025-01-04 20:37:45,477 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-76087139 virtual network link through opserver 10.0.0.17
2025-01-04 20:37:45,477 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-04 20:37:45,775 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-04 20:37:45,833 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-76087139', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-76087139?flat'}
2025-01-04 20:37:45,833 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-76087139 is found in opserver
2025-01-04 20:37:45,844 - DEBUG - Do not have enough data to verify VN in agent
2025-01-04 20:37:45,850 - DEBUG - VRF ids for VN ctest-vn-76087139: {}
2025-01-04 20:37:45,850 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-04 20:37:45,855 - DEBUG - Requesting: http://10.0.0.17:8082/domain/13ae25cb-aa81-4b6a-98ca-847fd76948d8
2025-01-04 20:37:45,867 - DEBUG - Requesting: http://10.0.0.17:8082/project/eeb563ba-9ecf-49f6-aee0-0096eff3e3bc
2025-01-04 20:37:45,941 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/c0f8459f-81a9-43d4-89cc-031d0778239c
2025-01-04 20:37:45,961 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/c0f8459f-81a9-43d4-89cc-031d0778239c
2025-01-04 20:37:45,973 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/52522000-a36a-4cbe-9330-21f85f273f14
2025-01-04 20:37:45,982 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/52522000-a36a-4cbe-9330-21f85f273f14
2025-01-04 20:37:45,992 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/71561e9f-db5c-4ca5-9afe-a207c2ddac32
2025-01-04 20:37:46,000 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-04 20:37:46,000 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/c0f8459f-81a9-43d4-89cc-031d0778239c
2025-01-04 20:37:46,012 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/52522000-a36a-4cbe-9330-21f85f273f14
2025-01-04 20:37:46,029 - INFO - Verified VN network id 9 for VN c0f8459f-81a9-43d4-89cc-031d0778239c
2025-01-04 20:37:46,030 - INFO - Verifications in API Server for VN ctest-vn-53861343 passed
2025-01-04 20:37:46,030 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/c0f8459f-81a9-43d4-89cc-031d0778239c
2025-01-04 20:37:46,041 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/52522000-a36a-4cbe-9330-21f85f273f14
2025-01-04 20:37:46,049 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/52522000-a36a-4cbe-9330-21f85f273f14
2025-01-04 20:37:46,057 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/71561e9f-db5c-4ca5-9afe-a207c2ddac32
2025-01-04 20:37:46,070 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-53861343', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69085111', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13904940400883876820', 'uuid-lslong': '9929314701659349916'}, 'enable': 'true', 'created': '2025-01-04T20:37:43', 'last-modified': '2025-01-04T20:37:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.421602'}
2025-01-04 20:37:46,077 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-04 20:37:46,077 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53861343 passed
2025-01-04 20:37:46,078 - DEBUG - ====Verifying policy data for ctest-vn-53861343 in API_Server ======
2025-01-04 20:37:46,078 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-04 20:37:46,084 - DEBUG - Requesting: http://10.0.0.17:8082/domain/13ae25cb-aa81-4b6a-98ca-847fd76948d8
2025-01-04 20:37:46,100 - DEBUG - Requesting: http://10.0.0.17:8082/project/eeb563ba-9ecf-49f6-aee0-0096eff3e3bc
2025-01-04 20:37:46,173 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/c0f8459f-81a9-43d4-89cc-031d0778239c
2025-01-04 20:37:46,188 - DEBUG - ==>Verifying data for policy with id: 3369631e-3141-4d97-9c46-f1ce98a2a47d, fqn: ['default-domain', 'ctest-TestBasicPolicy-69085111', 'ctest-policy-allow-all-86898261']
2025-01-04 20:37:46,188 - INFO - VN ctest-vn-53861343 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-04 20:37:46,188 - DEBUG - Verifying the vn in opserver
2025-01-04 20:37:46,188 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-53861343 virtual network link through opserver 10.0.0.17
2025-01-04 20:37:46,188 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-04 20:37:46,200 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-53861343', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-53861343?flat'}
2025-01-04 20:37:46,200 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-53861343 is found in opserver
2025-01-04 20:37:46,212 - DEBUG - Do not have enough data to verify VN in agent
2025-01-04 20:37:46,218 - DEBUG - VRF ids for VN ctest-vn-53861343: {}
2025-01-04 20:37:46,275 - DEBUG - Services list from nova: [