2024-09-04 14:23:32,408 - INFO - Domain Default found not creating
2024-09-04 14:23:32,561 - INFO - Project ctest-TestBasicPolicy-68069317 not found, creating it
2024-09-04 14:23:33,020 - INFO - Created Project:ctest-TestBasicPolicy-68069317, ID : ab427f1f-9000-4c90-b662-8f579f81cf3f
2024-09-04 14:23:34,500 - INFO - ================================================================================
2024-09-04 14:23:34,501 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-04 14:23:34,501 - 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-09-04 14:23:34,763 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.7': '0'}} with
2024-09-04 14:23:34,763 - INFO - Initial checks done. Running the testcase now
2024-09-04 14:23:34,763 - INFO -
2024-09-04 14:23:35,309 - DEBUG - Response for create_network : {'network': {'id': '703d879f-1980-45b0-a96f-dd451edd4728', 'name': 'ctest-vn-35452240', 'tenant_id': 'ab427f1f90004c90b6628f579f81cf3f', 'project_id': 'ab427f1f90004c90b6628f579f81cf3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68069317', 'ctest-vn-35452240'], 'port_security_enabled': True, 'description': ''}}
2024-09-04 14:23:35,465 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cfc50a8a-c493-47d2-838b-b27be0bb44a1', 'name': '', 'tenant_id': 'ab427f1f90004c90b6628f579f81cf3f', 'network_id': '703d879f-1980-45b0-a96f-dd451edd4728', 'ip_version': 4, 'cidr': '95.80.231.64/26', 'allocation_pools': [{'start': '95.80.231.66', 'end': '95.80.231.126'}], 'gateway_ip': '95.80.231.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.80.231.66', 'tags': [], 'project_id': 'ab427f1f90004c90b6628f579f81cf3f'}}
2024-09-04 14:23:35,484 - INFO - Created VN ctest-vn-35452240
2024-09-04 14:23:35,533 - DEBUG - VN ctest-vn-35452240 UUID is 703d879f-1980-45b0-a96f-dd451edd4728
2024-09-04 14:23:35,832 - DEBUG - Response for create_network : {'network': {'id': '782c7ba5-1217-4b3f-8877-e03a3e093803', 'name': 'ctest-vn-86336214', 'tenant_id': 'ab427f1f90004c90b6628f579f81cf3f', 'project_id': 'ab427f1f90004c90b6628f579f81cf3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68069317', 'ctest-vn-86336214'], 'port_security_enabled': True, 'description': ''}}
2024-09-04 14:23:36,008 - DEBUG - Response for create_subnet : {'subnet': {'id': '742f8a58-86ef-45bb-8b41-9347b9a1424e', 'name': '', 'tenant_id': 'ab427f1f90004c90b6628f579f81cf3f', 'network_id': '782c7ba5-1217-4b3f-8877-e03a3e093803', 'ip_version': 4, 'cidr': '26.162.239.64/26', 'allocation_pools': [{'start': '26.162.239.66', 'end': '26.162.239.126'}], 'gateway_ip': '26.162.239.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.162.239.66', 'tags': [], 'project_id': 'ab427f1f90004c90b6628f579f81cf3f'}}
2024-09-04 14:23:36,027 - INFO - Created VN ctest-vn-86336214
2024-09-04 14:23:36,077 - DEBUG - VN ctest-vn-86336214 UUID is 782c7ba5-1217-4b3f-8877-e03a3e093803
2024-09-04 14:23:36,189 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-35452240, 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-68069317:ctest-vn-86336214, 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-09-04 14:23:36,480 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '703d879f-1980-45b0-a96f-dd451edd4728', 'name': 'ctest-vn-35452240', 'tenant_id': 'ab427f1f90004c90b6628f579f81cf3f', 'project_id': 'ab427f1f90004c90b6628f579f81cf3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cfc50a8a-c493-47d2-838b-b27be0bb44a1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68069317', 'ctest-vn-35452240'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68069317', 'ctest-policy-allow-all-72940444']], 'subnet_ipam': [{'subnet_cidr': '95.80.231.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-04 14:23:36,716 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '782c7ba5-1217-4b3f-8877-e03a3e093803', 'name': 'ctest-vn-86336214', 'tenant_id': 'ab427f1f90004c90b6628f579f81cf3f', 'project_id': 'ab427f1f90004c90b6628f579f81cf3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['742f8a58-86ef-45bb-8b41-9347b9a1424e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68069317', 'ctest-vn-86336214'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68069317', 'ctest-policy-allow-all-72940444']], 'subnet_ipam': [{'subnet_cidr': '26.162.239.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-04 14:23:36,893 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-04 14:23:37,187 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-04 14:23:37,219 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c31cf390-5de5-4e7b-8bf1-8b9b225f550f
2024-09-04 14:23:37,233 - DEBUG - Requesting: http://10.0.0.33:8082/project/ab427f1f-9000-4c90-b662-8f579f81cf3f
2024-09-04 14:23:37,307 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/703d879f-1980-45b0-a96f-dd451edd4728
2024-09-04 14:23:37,317 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/703d879f-1980-45b0-a96f-dd451edd4728
2024-09-04 14:23:37,325 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1538cdfe-d679-41db-ab8a-be3fd506bc6c
2024-09-04 14:23:37,332 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1538cdfe-d679-41db-ab8a-be3fd506bc6c
2024-09-04 14:23:37,339 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/33ec1026-0ed3-4c1c-aa32-8ca7e5e6960b
2024-09-04 14:23:37,345 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-04 14:23:37,345 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/703d879f-1980-45b0-a96f-dd451edd4728
2024-09-04 14:23:37,352 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1538cdfe-d679-41db-ab8a-be3fd506bc6c
2024-09-04 14:23:37,364 - INFO - Verified VN network id 9 for VN 703d879f-1980-45b0-a96f-dd451edd4728
2024-09-04 14:23:37,364 - INFO - Verifications in API Server for VN ctest-vn-35452240 passed
2024-09-04 14:23:37,364 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/703d879f-1980-45b0-a96f-dd451edd4728
2024-09-04 14:23:37,371 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1538cdfe-d679-41db-ab8a-be3fd506bc6c
2024-09-04 14:23:37,377 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1538cdfe-d679-41db-ab8a-be3fd506bc6c
2024-09-04 14:23:37,383 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/33ec1026-0ed3-4c1c-aa32-8ca7e5e6960b
2024-09-04 14:23:37,394 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-35452240', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68069317', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8087769623224665520', 'uuid-lslong': '12209220403765004072'}, 'enable': 'true', 'created': '2024-09-04T14:23:35', 'last-modified': '2024-09-04T14:23:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.935121'}
2024-09-04 14:23:37,401 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-04 14:23:37,401 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35452240 passed
2024-09-04 14:23:37,402 - DEBUG - ====Verifying policy data for ctest-vn-35452240 in API_Server ======
2024-09-04 14:23:37,402 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-04 14:23:37,407 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c31cf390-5de5-4e7b-8bf1-8b9b225f550f
2024-09-04 14:23:37,418 - DEBUG - Requesting: http://10.0.0.33:8082/project/ab427f1f-9000-4c90-b662-8f579f81cf3f
2024-09-04 14:23:37,485 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/703d879f-1980-45b0-a96f-dd451edd4728
2024-09-04 14:23:37,493 - DEBUG - ==>Verifying data for policy with id: a2b69766-ebf5-44af-9874-179250d3c76a, fqn: ['default-domain', 'ctest-TestBasicPolicy-68069317', 'ctest-policy-allow-all-72940444']
2024-09-04 14:23:37,493 - INFO - VN ctest-vn-35452240 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-04 14:23:37,493 - DEBUG - Verifying the vn in opserver
2024-09-04 14:23:37,493 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-35452240 virtual network link through opserver 10.0.0.33
2024-09-04 14:23:37,493 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-09-04 14:23:37,784 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-09-04 14:23:37,846 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-35452240', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-35452240?flat'}
2024-09-04 14:23:37,846 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-35452240 is found in opserver
2024-09-04 14:23:37,856 - DEBUG - Do not have enough data to verify VN in agent
2024-09-04 14:23:37,861 - DEBUG - VRF ids for VN ctest-vn-35452240: {}
2024-09-04 14:23:37,861 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-04 14:23:37,867 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c31cf390-5de5-4e7b-8bf1-8b9b225f550f
2024-09-04 14:23:37,880 - DEBUG - Requesting: http://10.0.0.33:8082/project/ab427f1f-9000-4c90-b662-8f579f81cf3f
2024-09-04 14:23:37,946 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/782c7ba5-1217-4b3f-8877-e03a3e093803
2024-09-04 14:23:37,957 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/782c7ba5-1217-4b3f-8877-e03a3e093803
2024-09-04 14:23:37,965 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2925e637-b8a8-4525-8ceb-069b25cdb76e
2024-09-04 14:23:37,972 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2925e637-b8a8-4525-8ceb-069b25cdb76e
2024-09-04 14:23:37,979 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/77fcbe13-93a6-40bf-afce-709f33a85dc1
2024-09-04 14:23:37,985 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-04 14:23:37,985 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/782c7ba5-1217-4b3f-8877-e03a3e093803
2024-09-04 14:23:37,993 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2925e637-b8a8-4525-8ceb-069b25cdb76e
2024-09-04 14:23:38,005 - INFO - Verified VN network id 10 for VN 782c7ba5-1217-4b3f-8877-e03a3e093803
2024-09-04 14:23:38,005 - INFO - Verifications in API Server for VN ctest-vn-86336214 passed
2024-09-04 14:23:38,005 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/782c7ba5-1217-4b3f-8877-e03a3e093803
2024-09-04 14:23:38,014 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2925e637-b8a8-4525-8ceb-069b25cdb76e
2024-09-04 14:23:38,020 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2925e637-b8a8-4525-8ceb-069b25cdb76e
2024-09-04 14:23:38,027 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/77fcbe13-93a6-40bf-afce-709f33a85dc1
2024-09-04 14:23:38,040 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-86336214', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68069317', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8659432132429957951', 'uuid-lslong': '9833574852140283907'}, 'enable': 'true', 'created': '2024-09-04T14:23:35', 'last-modified': '2024-09-04T14:23:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.349086'}
2024-09-04 14:23:38,046 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-04 14:23:38,046 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86336214 passed
2024-09-04 14:23:38,046 - DEBUG - ====Verifying policy data for ctest-vn-86336214 in API_Server ======
2024-09-04 14:23:38,046 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-04 14:23:38,052 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c31cf390-5de5-4e7b-8bf1-8b9b225f550f
2024-09-04 14:23:38,064 - DEBUG - Requesting: http://10.0.0.33:8082/project/ab427f1f-9000-4c90-b662-8f579f81cf3f
2024-09-04 14:23:38,132 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/782c7ba5-1217-4b3f-8877-e03a3e093803
2024-09-04 14:23:38,140 - DEBUG - ==>Verifying data for policy with id: a2b69766-ebf5-44af-9874-179250d3c76a, fqn: ['default-domain', 'ctest-TestBasicPolicy-68069317', 'ctest-policy-allow-all-72940444']
2024-09-04 14:23:38,140 - INFO - VN ctest-vn-86336214 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-04 14:23:38,140 - DEBUG - Verifying the vn in opserver
2024-09-04 14:23:38,140 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-86336214 virtual network link through opserver 10.0.0.33
2024-09-04 14:23:38,140 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-09-04 14:23:38,152 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-86336214', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-86336214?flat'}
2024-09-04 14:23:38,152 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-86336214 is found in opserver
2024-09-04 14:23:38,162 - DEBUG - Do not have enough data to verify VN in agent
2024-09-04 14:23:38,168 - DEBUG - VRF ids for VN ctest-vn-86336214: {}
2024-09-04 14:23:38,223 - DEBUG - Services list from nova: [