2024-12-30 02:26:07,033 - INFO - Domain Default found not creating
2024-12-30 02:26:07,180 - INFO - Project ctest-TestBasicPolicy-93285439 not found, creating it
2024-12-30 02:26:07,622 - INFO - Created Project:ctest-TestBasicPolicy-93285439, ID : 07e3a404-0e5b-4b90-be53-f1c7addd23ad
2024-12-30 02:26:09,063 - INFO - ================================================================================
2024-12-30 02:26:09,064 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-12-30 02:26:09,064 - 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
2024-12-30 02:26:09,318 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.0.0.17': '0'}} with
2024-12-30 02:26:09,318 - INFO - Initial checks done. Running the testcase now
2024-12-30 02:26:09,318 - INFO -
2024-12-30 02:26:09,855 - DEBUG - Response for create_network : {'network': {'id': 'b10f1964-3e3d-4121-8e1d-401025d23afc', 'name': 'ctest-vn-74054730', 'tenant_id': '07e3a4040e5b4b90be53f1c7addd23ad', 'project_id': '07e3a4040e5b4b90be53f1c7addd23ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93285439', 'ctest-vn-74054730'], 'port_security_enabled': True, 'description': ''}}
2024-12-30 02:26:10,017 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e25e093-9736-4566-aba7-a4e415c63b87', 'name': '', 'tenant_id': '07e3a4040e5b4b90be53f1c7addd23ad', 'network_id': 'b10f1964-3e3d-4121-8e1d-401025d23afc', 'ip_version': 4, 'cidr': '48.195.76.0/26', 'allocation_pools': [{'start': '48.195.76.2', 'end': '48.195.76.62'}], 'gateway_ip': '48.195.76.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.195.76.2', 'tags': [], 'project_id': '07e3a4040e5b4b90be53f1c7addd23ad'}}
2024-12-30 02:26:10,033 - INFO - Created VN ctest-vn-74054730
2024-12-30 02:26:10,083 - DEBUG - VN ctest-vn-74054730 UUID is b10f1964-3e3d-4121-8e1d-401025d23afc
2024-12-30 02:26:10,399 - DEBUG - Response for create_network : {'network': {'id': 'a7ba4970-c5a8-4c98-9d20-cfe5ae4c8f23', 'name': 'ctest-vn-04241932', 'tenant_id': '07e3a4040e5b4b90be53f1c7addd23ad', 'project_id': '07e3a4040e5b4b90be53f1c7addd23ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93285439', 'ctest-vn-04241932'], 'port_security_enabled': True, 'description': ''}}
2024-12-30 02:26:10,601 - DEBUG - Response for create_subnet : {'subnet': {'id': '16b524a4-a976-4bd2-9756-d00fe1e8e49f', 'name': '', 'tenant_id': '07e3a4040e5b4b90be53f1c7addd23ad', 'network_id': 'a7ba4970-c5a8-4c98-9d20-cfe5ae4c8f23', 'ip_version': 4, 'cidr': '114.116.252.0/26', 'allocation_pools': [{'start': '114.116.252.2', 'end': '114.116.252.62'}], 'gateway_ip': '114.116.252.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.116.252.2', 'tags': [], 'project_id': '07e3a4040e5b4b90be53f1c7addd23ad'}}
2024-12-30 02:26:10,618 - INFO - Created VN ctest-vn-04241932
2024-12-30 02:26:10,671 - DEBUG - VN ctest-vn-04241932 UUID is a7ba4970-c5a8-4c98-9d20-cfe5ae4c8f23
2024-12-30 02:26:10,823 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-93285439:ctest-vn-74054730, 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-93285439:ctest-vn-04241932, 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]
2024-12-30 02:26:11,112 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b10f1964-3e3d-4121-8e1d-401025d23afc', 'name': 'ctest-vn-74054730', 'tenant_id': '07e3a4040e5b4b90be53f1c7addd23ad', 'project_id': '07e3a4040e5b4b90be53f1c7addd23ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e25e093-9736-4566-aba7-a4e415c63b87'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93285439', 'ctest-vn-74054730'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93285439', 'ctest-policy-allow-all-40726210']], 'subnet_ipam': [{'subnet_cidr': '48.195.76.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-30 02:26:11,334 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a7ba4970-c5a8-4c98-9d20-cfe5ae4c8f23', 'name': 'ctest-vn-04241932', 'tenant_id': '07e3a4040e5b4b90be53f1c7addd23ad', 'project_id': '07e3a4040e5b4b90be53f1c7addd23ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['16b524a4-a976-4bd2-9756-d00fe1e8e49f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93285439', 'ctest-vn-04241932'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93285439', 'ctest-policy-allow-all-40726210']], 'subnet_ipam': [{'subnet_cidr': '114.116.252.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-30 02:26:11,483 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-12-30 02:26:11,781 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-12-30 02:26:11,809 - DEBUG - Requesting: http://10.0.0.17:8082/domain/30bd2ff1-da41-468d-a29e-6955620cabf2
2024-12-30 02:26:11,823 - DEBUG - Requesting: http://10.0.0.17:8082/project/07e3a404-0e5b-4b90-be53-f1c7addd23ad
2024-12-30 02:26:11,894 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b10f1964-3e3d-4121-8e1d-401025d23afc
2024-12-30 02:26:11,905 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b10f1964-3e3d-4121-8e1d-401025d23afc
2024-12-30 02:26:11,915 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a2f26cac-79f9-4a56-8430-798c20b6893b
2024-12-30 02:26:11,922 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a2f26cac-79f9-4a56-8430-798c20b6893b
2024-12-30 02:26:11,929 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/3499d73c-fcf0-41c0-bd53-46685678fb50
2024-12-30 02:26:11,935 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-30 02:26:11,935 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b10f1964-3e3d-4121-8e1d-401025d23afc
2024-12-30 02:26:11,945 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a2f26cac-79f9-4a56-8430-798c20b6893b
2024-12-30 02:26:11,959 - INFO - Verified VN network id 9 for VN b10f1964-3e3d-4121-8e1d-401025d23afc
2024-12-30 02:26:11,959 - INFO - Verifications in API Server for VN ctest-vn-74054730 passed
2024-12-30 02:26:11,959 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b10f1964-3e3d-4121-8e1d-401025d23afc
2024-12-30 02:26:11,971 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a2f26cac-79f9-4a56-8430-798c20b6893b
2024-12-30 02:26:11,984 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a2f26cac-79f9-4a56-8430-798c20b6893b
2024-12-30 02:26:11,991 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/3499d73c-fcf0-41c0-bd53-46685678fb50
2024-12-30 02:26:12,004 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93285439:ctest-vn-74054730', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93285439', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12758444187695530273', 'uuid-lslong': '10240411565808564988'}, 'enable': 'true', 'created': '2024-12-30T02:26:09', 'last-modified': '2024-12-30T02:26:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.913704'}
2024-12-30 02:26:12,013 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-30 02:26:12,014 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74054730 passed
2024-12-30 02:26:12,014 - DEBUG - ====Verifying policy data for ctest-vn-74054730 in API_Server ======
2024-12-30 02:26:12,014 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-12-30 02:26:12,021 - DEBUG - Requesting: http://10.0.0.17:8082/domain/30bd2ff1-da41-468d-a29e-6955620cabf2
2024-12-30 02:26:12,033 - DEBUG - Requesting: http://10.0.0.17:8082/project/07e3a404-0e5b-4b90-be53-f1c7addd23ad
2024-12-30 02:26:12,108 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b10f1964-3e3d-4121-8e1d-401025d23afc
2024-12-30 02:26:12,120 - DEBUG - ==>Verifying data for policy with id: ca5def65-c212-4461-a8c4-3b3aa9643671, fqn: ['default-domain', 'ctest-TestBasicPolicy-93285439', 'ctest-policy-allow-all-40726210']
2024-12-30 02:26:12,120 - INFO - VN ctest-vn-74054730 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-30 02:26:12,120 - DEBUG - Verifying the vn in opserver
2024-12-30 02:26:12,120 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93285439:ctest-vn-74054730 virtual network link through opserver 10.0.0.17
2024-12-30 02:26:12,121 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-12-30 02:26:12,417 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-12-30 02:26:12,472 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93285439:ctest-vn-74054730', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93285439:ctest-vn-74054730?flat'}
2024-12-30 02:26:12,472 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93285439:ctest-vn-74054730 is found in opserver
2024-12-30 02:26:12,486 - DEBUG - Do not have enough data to verify VN in agent
2024-12-30 02:26:12,491 - DEBUG - VRF ids for VN ctest-vn-74054730: {}
2024-12-30 02:26:12,491 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-12-30 02:26:12,497 - DEBUG - Requesting: http://10.0.0.17:8082/domain/30bd2ff1-da41-468d-a29e-6955620cabf2
2024-12-30 02:26:12,512 - DEBUG - Requesting: http://10.0.0.17:8082/project/07e3a404-0e5b-4b90-be53-f1c7addd23ad
2024-12-30 02:26:12,584 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/a7ba4970-c5a8-4c98-9d20-cfe5ae4c8f23
2024-12-30 02:26:12,598 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/a7ba4970-c5a8-4c98-9d20-cfe5ae4c8f23
2024-12-30 02:26:12,608 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/3c527a7f-b254-410c-854a-bb2ac27df423
2024-12-30 02:26:12,615 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/3c527a7f-b254-410c-854a-bb2ac27df423
2024-12-30 02:26:12,623 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/2f4b30c8-9969-45e5-baae-bc568d48e65a
2024-12-30 02:26:12,631 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-30 02:26:12,632 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/a7ba4970-c5a8-4c98-9d20-cfe5ae4c8f23
2024-12-30 02:26:12,646 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/3c527a7f-b254-410c-854a-bb2ac27df423
2024-12-30 02:26:12,661 - INFO - Verified VN network id 10 for VN a7ba4970-c5a8-4c98-9d20-cfe5ae4c8f23
2024-12-30 02:26:12,661 - INFO - Verifications in API Server for VN ctest-vn-04241932 passed
2024-12-30 02:26:12,661 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/a7ba4970-c5a8-4c98-9d20-cfe5ae4c8f23
2024-12-30 02:26:12,671 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/3c527a7f-b254-410c-854a-bb2ac27df423
2024-12-30 02:26:12,681 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/3c527a7f-b254-410c-854a-bb2ac27df423
2024-12-30 02:26:12,689 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/2f4b30c8-9969-45e5-baae-bc568d48e65a
2024-12-30 02:26:12,702 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93285439:ctest-vn-04241932', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93285439', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12086053298703453336', 'uuid-lslong': '11322278048588140323'}, 'enable': 'true', 'created': '2024-12-30T02:26:10', 'last-modified': '2024-12-30T02:26:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.385575'}
2024-12-30 02:26:12,709 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-30 02:26:12,709 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04241932 passed
2024-12-30 02:26:12,709 - DEBUG - ====Verifying policy data for ctest-vn-04241932 in API_Server ======
2024-12-30 02:26:12,709 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-12-30 02:26:12,714 - DEBUG - Requesting: http://10.0.0.17:8082/domain/30bd2ff1-da41-468d-a29e-6955620cabf2
2024-12-30 02:26:12,729 - DEBUG - Requesting: http://10.0.0.17:8082/project/07e3a404-0e5b-4b90-be53-f1c7addd23ad
2024-12-30 02:26:12,802 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/a7ba4970-c5a8-4c98-9d20-cfe5ae4c8f23
2024-12-30 02:26:12,811 - DEBUG - ==>Verifying data for policy with id: ca5def65-c212-4461-a8c4-3b3aa9643671, fqn: ['default-domain', 'ctest-TestBasicPolicy-93285439', 'ctest-policy-allow-all-40726210']
2024-12-30 02:26:12,811 - INFO - VN ctest-vn-04241932 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-30 02:26:12,811 - DEBUG - Verifying the vn in opserver
2024-12-30 02:26:12,811 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93285439:ctest-vn-04241932 virtual network link through opserver 10.0.0.17
2024-12-30 02:26:12,811 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-12-30 02:26:12,820 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93285439:ctest-vn-04241932', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93285439:ctest-vn-04241932?flat'}
2024-12-30 02:26:12,820 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93285439:ctest-vn-04241932 is found in opserver
2024-12-30 02:26:12,830 - DEBUG - Do not have enough data to verify VN in agent
2024-12-30 02:26:12,835 - DEBUG - VRF ids for VN ctest-vn-04241932: {}
2024-12-30 02:26:12,891 - DEBUG - Services list from nova: [