2024-10-26 09:37:34,159 - INFO - Domain Default found not creating
2024-10-26 09:37:34,364 - INFO - Project ctest-TestBasicPolicy-47533318 not found, creating it
2024-10-26 09:37:34,886 - INFO - Created Project:ctest-TestBasicPolicy-47533318, ID : 807443bf-2683-434d-95fe-53c4417437ee
2024-10-26 09:37:36,441 - INFO - ================================================================================
2024-10-26 09:37:36,441 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-26 09:37:36,441 - 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-10-26 09:37:36,699 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.14': '0'}} with
2024-10-26 09:37:36,700 - INFO - Initial checks done. Running the testcase now
2024-10-26 09:37:36,700 - INFO -
2024-10-26 09:37:37,332 - DEBUG - Response for create_network : {'network': {'id': '19b0ebce-2306-47d9-b98d-f2a9a704aa3d', 'name': 'ctest-vn-68999683', 'tenant_id': '807443bf2683434d95fe53c4417437ee', 'project_id': '807443bf2683434d95fe53c4417437ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47533318', 'ctest-vn-68999683'], 'port_security_enabled': True, 'description': ''}}
2024-10-26 09:37:37,584 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ebf7dbf3-a9d6-4c6e-a361-f3be9f1184a3', 'name': '', 'tenant_id': '807443bf2683434d95fe53c4417437ee', 'network_id': '19b0ebce-2306-47d9-b98d-f2a9a704aa3d', 'ip_version': 4, 'cidr': '26.20.193.192/26', 'allocation_pools': [{'start': '26.20.193.194', 'end': '26.20.193.254'}], 'gateway_ip': '26.20.193.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.20.193.194', 'tags': [], 'project_id': '807443bf2683434d95fe53c4417437ee'}}
2024-10-26 09:37:37,611 - INFO - Created VN ctest-vn-68999683
2024-10-26 09:37:37,671 - DEBUG - VN ctest-vn-68999683 UUID is 19b0ebce-2306-47d9-b98d-f2a9a704aa3d
2024-10-26 09:37:38,036 - DEBUG - Response for create_network : {'network': {'id': 'a36df0e0-978e-4835-a82d-482a6d8a2862', 'name': 'ctest-vn-50643371', 'tenant_id': '807443bf2683434d95fe53c4417437ee', 'project_id': '807443bf2683434d95fe53c4417437ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47533318', 'ctest-vn-50643371'], 'port_security_enabled': True, 'description': ''}}
2024-10-26 09:37:38,217 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7ae921a-e705-4abd-9717-49b267a49831', 'name': '', 'tenant_id': '807443bf2683434d95fe53c4417437ee', 'network_id': 'a36df0e0-978e-4835-a82d-482a6d8a2862', 'ip_version': 4, 'cidr': '182.100.193.192/26', 'allocation_pools': [{'start': '182.100.193.194', 'end': '182.100.193.254'}], 'gateway_ip': '182.100.193.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.100.193.194', 'tags': [], 'project_id': '807443bf2683434d95fe53c4417437ee'}}
2024-10-26 09:37:38,243 - INFO - Created VN ctest-vn-50643371
2024-10-26 09:37:38,303 - DEBUG - VN ctest-vn-50643371 UUID is a36df0e0-978e-4835-a82d-482a6d8a2862
2024-10-26 09:37:38,430 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47533318:ctest-vn-68999683, 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-47533318:ctest-vn-50643371, 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-10-26 09:37:38,776 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '19b0ebce-2306-47d9-b98d-f2a9a704aa3d', 'name': 'ctest-vn-68999683', 'tenant_id': '807443bf2683434d95fe53c4417437ee', 'project_id': '807443bf2683434d95fe53c4417437ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ebf7dbf3-a9d6-4c6e-a361-f3be9f1184a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47533318', 'ctest-vn-68999683'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47533318', 'ctest-policy-allow-all-86195215']], 'subnet_ipam': [{'subnet_cidr': '26.20.193.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-26 09:37:39,109 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a36df0e0-978e-4835-a82d-482a6d8a2862', 'name': 'ctest-vn-50643371', 'tenant_id': '807443bf2683434d95fe53c4417437ee', 'project_id': '807443bf2683434d95fe53c4417437ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b7ae921a-e705-4abd-9717-49b267a49831'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47533318', 'ctest-vn-50643371'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47533318', 'ctest-policy-allow-all-86195215']], 'subnet_ipam': [{'subnet_cidr': '182.100.193.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-26 09:37:39,267 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-26 09:37:39,577 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-26 09:37:39,610 - DEBUG - Requesting: http://10.0.0.32:8082/domain/164370bb-87ee-4961-9604-5f5f5f7fb798
2024-10-26 09:37:39,625 - DEBUG - Requesting: http://10.0.0.32:8082/project/807443bf-2683-434d-95fe-53c4417437ee
2024-10-26 09:37:39,707 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/19b0ebce-2306-47d9-b98d-f2a9a704aa3d
2024-10-26 09:37:39,726 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/19b0ebce-2306-47d9-b98d-f2a9a704aa3d
2024-10-26 09:37:39,744 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/5bffb0e7-98cf-4520-8cd8-c58245a2bf6b
2024-10-26 09:37:39,756 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/5bffb0e7-98cf-4520-8cd8-c58245a2bf6b
2024-10-26 09:37:39,767 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/ccf6d080-33aa-4043-bee0-aac85c4cb218
2024-10-26 09:37:39,778 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-26 09:37:39,778 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/19b0ebce-2306-47d9-b98d-f2a9a704aa3d
2024-10-26 09:37:39,792 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/5bffb0e7-98cf-4520-8cd8-c58245a2bf6b
2024-10-26 09:37:39,822 - INFO - Verified VN network id 8 for VN 19b0ebce-2306-47d9-b98d-f2a9a704aa3d
2024-10-26 09:37:39,823 - INFO - Verifications in API Server for VN ctest-vn-68999683 passed
2024-10-26 09:37:39,823 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/19b0ebce-2306-47d9-b98d-f2a9a704aa3d
2024-10-26 09:37:39,841 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/5bffb0e7-98cf-4520-8cd8-c58245a2bf6b
2024-10-26 09:37:39,851 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/5bffb0e7-98cf-4520-8cd8-c58245a2bf6b
2024-10-26 09:37:39,860 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/ccf6d080-33aa-4043-bee0-aac85c4cb218
2024-10-26 09:37:39,874 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47533318:ctest-vn-68999683', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47533318', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1851238717432678361', 'uuid-lslong': '13370609679198366269'}, 'enable': 'true', 'created': '2024-10-26T09:37:37', 'last-modified': '2024-10-26T09:37:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.130878'}
2024-10-26 09:37:39,881 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-26 09:37:39,881 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68999683 passed
2024-10-26 09:37:39,882 - DEBUG - ====Verifying policy data for ctest-vn-68999683 in API_Server ======
2024-10-26 09:37:39,882 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-26 09:37:39,888 - DEBUG - Requesting: http://10.0.0.32:8082/domain/164370bb-87ee-4961-9604-5f5f5f7fb798
2024-10-26 09:37:39,903 - DEBUG - Requesting: http://10.0.0.32:8082/project/807443bf-2683-434d-95fe-53c4417437ee
2024-10-26 09:37:39,991 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/19b0ebce-2306-47d9-b98d-f2a9a704aa3d
2024-10-26 09:37:40,008 - DEBUG - ==>Verifying data for policy with id: 5d88df48-1434-4882-81c2-375ee834006a, fqn: ['default-domain', 'ctest-TestBasicPolicy-47533318', 'ctest-policy-allow-all-86195215']
2024-10-26 09:37:40,008 - INFO - VN ctest-vn-68999683 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-26 09:37:40,008 - DEBUG - Verifying the vn in opserver
2024-10-26 09:37:40,008 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47533318:ctest-vn-68999683 virtual network link through opserver 10.0.0.32
2024-10-26 09:37:40,009 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-10-26 09:37:40,311 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-10-26 09:37:40,384 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47533318:ctest-vn-68999683', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47533318:ctest-vn-68999683?flat'}
2024-10-26 09:37:40,384 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47533318:ctest-vn-68999683 is found in opserver
2024-10-26 09:37:40,400 - DEBUG - Do not have enough data to verify VN in agent
2024-10-26 09:37:40,405 - DEBUG - VRF ids for VN ctest-vn-68999683: {}
2024-10-26 09:37:40,406 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-26 09:37:40,414 - DEBUG - Requesting: http://10.0.0.32:8082/domain/164370bb-87ee-4961-9604-5f5f5f7fb798
2024-10-26 09:37:40,431 - DEBUG - Requesting: http://10.0.0.32:8082/project/807443bf-2683-434d-95fe-53c4417437ee
2024-10-26 09:37:40,524 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/a36df0e0-978e-4835-a82d-482a6d8a2862
2024-10-26 09:37:40,542 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/a36df0e0-978e-4835-a82d-482a6d8a2862
2024-10-26 09:37:40,556 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/b82026dd-77a6-42b6-b0bc-1f4537cb725d
2024-10-26 09:37:40,567 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/b82026dd-77a6-42b6-b0bc-1f4537cb725d
2024-10-26 09:37:40,578 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/9dc02048-2511-43f3-b73b-013e1982b11e
2024-10-26 09:37:40,589 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-26 09:37:40,589 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/a36df0e0-978e-4835-a82d-482a6d8a2862
2024-10-26 09:37:40,607 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/b82026dd-77a6-42b6-b0bc-1f4537cb725d
2024-10-26 09:37:40,632 - INFO - Verified VN network id 9 for VN a36df0e0-978e-4835-a82d-482a6d8a2862
2024-10-26 09:37:40,632 - INFO - Verifications in API Server for VN ctest-vn-50643371 passed
2024-10-26 09:37:40,632 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/a36df0e0-978e-4835-a82d-482a6d8a2862
2024-10-26 09:37:40,647 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/b82026dd-77a6-42b6-b0bc-1f4537cb725d
2024-10-26 09:37:40,657 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/b82026dd-77a6-42b6-b0bc-1f4537cb725d
2024-10-26 09:37:40,667 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/9dc02048-2511-43f3-b73b-013e1982b11e
2024-10-26 09:37:40,681 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47533318:ctest-vn-50643371', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47533318', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11776333448049739829', 'uuid-lslong': '12118421519387469922'}, 'enable': 'true', 'created': '2024-10-26T09:37:38', 'last-modified': '2024-10-26T09:37:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.658019'}
2024-10-26 09:37:40,688 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-26 09:37:40,688 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50643371 passed
2024-10-26 09:37:40,688 - DEBUG - ====Verifying policy data for ctest-vn-50643371 in API_Server ======
2024-10-26 09:37:40,688 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-26 09:37:40,696 - DEBUG - Requesting: http://10.0.0.32:8082/domain/164370bb-87ee-4961-9604-5f5f5f7fb798
2024-10-26 09:37:40,713 - DEBUG - Requesting: http://10.0.0.32:8082/project/807443bf-2683-434d-95fe-53c4417437ee
2024-10-26 09:37:40,803 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/a36df0e0-978e-4835-a82d-482a6d8a2862
2024-10-26 09:37:40,817 - DEBUG - ==>Verifying data for policy with id: 5d88df48-1434-4882-81c2-375ee834006a, fqn: ['default-domain', 'ctest-TestBasicPolicy-47533318', 'ctest-policy-allow-all-86195215']
2024-10-26 09:37:40,817 - INFO - VN ctest-vn-50643371 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-26 09:37:40,817 - DEBUG - Verifying the vn in opserver
2024-10-26 09:37:40,817 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47533318:ctest-vn-50643371 virtual network link through opserver 10.0.0.32
2024-10-26 09:37:40,817 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-10-26 09:37:40,831 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47533318:ctest-vn-50643371', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47533318:ctest-vn-50643371?flat'}
2024-10-26 09:37:40,831 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47533318:ctest-vn-50643371 is found in opserver
2024-10-26 09:37:40,842 - DEBUG - Do not have enough data to verify VN in agent
2024-10-26 09:37:40,847 - DEBUG - VRF ids for VN ctest-vn-50643371: {}
2024-10-26 09:37:40,907 - DEBUG - Services list from nova: [